diff options
| author | Selene ToyKeeper | 2023-12-02 13:35:59 -0700 |
|---|---|---|
| committer | Selene ToyKeeper | 2023-12-02 13:35:59 -0700 |
| commit | 73d1f3e156296642bdc35aed2ffa16458e321d2d (patch) | |
| tree | 795359fe1566768a184e240de083a087d714afea /.github/workflows/compile.yml | |
| parent | build-all: handle the case where "git describe" can't get any tags (diff) | |
| download | anduril-73d1f3e156296642bdc35aed2ffa16458e321d2d.tar.gz anduril-73d1f3e156296642bdc35aed2ffa16458e321d2d.tar.bz2 anduril-73d1f3e156296642bdc35aed2ffa16458e321d2d.zip | |
github CI: fetch history too, to allow detection of version tags
It needs history to determine which tag precedes the current commit.
This could be expensive on large repos, but for Anduril it seems to
only increase the checkout size by about 40% or so. (11 MiB -> 15 MiB)
Diffstat (limited to '')
| -rw-r--r-- | .github/workflows/compile.yml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 3f03c40..2ba771f 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -17,8 +17,9 @@ jobs: - name: Checkout uses: actions/checkout@master - # allow 'git describe' to work, by fetching tags + # allow 'git describe' to work, by fetching tags and history with: + fetch-depth: 0 fetch-tags: true - name: Stop committing version.h |
