From 73d1f3e156296642bdc35aed2ffa16458e321d2d Mon Sep 17 00:00:00 2001 From: Selene ToyKeeper Date: Sat, 2 Dec 2023 13:35:59 -0700 Subject: 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) --- .github/workflows/compile.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to '.github') 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 -- cgit v1.2.3