Skip to content

Commit e74786a

Browse files
committed
Fetch tags & all history when retrieving code to build and test
We need tags and all the history when we build the release binaries so that the version header generator can complete properly.
1 parent f48711f commit e74786a

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/run_tests.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ jobs:
3636

3737
- name: Checkout code
3838
uses: actions/checkout@v4
39+
with:
40+
fetch-depth: 0 # Fetch all the history so that `git describe` works to generate the version header
41+
fetch-tags: true
3942

4043
- name: Build debug binaries
4144
run: msbuild /r /m /p:Configuration=Debug /p:Platform=x86 build\foo_openlyrics.sln
@@ -55,6 +58,9 @@ jobs:
5558

5659
- name: Checkout code
5760
uses: actions/checkout@v4
61+
with:
62+
fetch-depth: 0 # Fetch all the history so that `git describe` works to generate the version header
63+
fetch-tags: true
5864

5965
- name: Build debug binaries
6066
run: msbuild /r /m /p:Configuration=Debug /p:Platform=x64 build\foo_openlyrics.sln

0 commit comments

Comments
 (0)