From a4498925d64019cb0d00e785404daa6fe06c38ae Mon Sep 17 00:00:00 2001 From: Ryan Houdek Date: Wed, 11 Feb 2026 16:58:23 -0800 Subject: [PATCH] CI: Checkout with tags and non-shallow This way `git describe` works. --- .github/workflows/ccpp.yml | 3 +++ .github/workflows/glibc_fault.yml | 3 +++ .github/workflows/hostrunner.yml | 3 +++ .github/workflows/instcountci.yml | 3 +++ .github/workflows/mingw_build.yml | 3 +++ .github/workflows/steamrt4.yml | 3 +++ .github/workflows/vixl_simulator.yml | 3 +++ .github/workflows/wine_dll_artifacts.yml | 5 ++++- .gitlab-ci.yml | 1 + 9 files changed, 26 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ccpp.yml b/.github/workflows/ccpp.yml index 6cd0591ea..d51e0a7f9 100644 --- a/.github/workflows/ccpp.yml +++ b/.github/workflows/ccpp.yml @@ -25,6 +25,9 @@ jobs: steps: - uses: actions/checkout@v6 + with: + fetch-depth: '0' + fetch-tags: 'true' - name: Set runner info run: | diff --git a/.github/workflows/glibc_fault.yml b/.github/workflows/glibc_fault.yml index 6249731f2..cdcee453c 100644 --- a/.github/workflows/glibc_fault.yml +++ b/.github/workflows/glibc_fault.yml @@ -32,6 +32,9 @@ jobs: steps: - uses: actions/checkout@v6 + with: + fetch-depth: '0' + fetch-tags: 'true' - name: Set runner info run: | diff --git a/.github/workflows/hostrunner.yml b/.github/workflows/hostrunner.yml index 4d4a62a2e..dd1cb6110 100644 --- a/.github/workflows/hostrunner.yml +++ b/.github/workflows/hostrunner.yml @@ -25,6 +25,9 @@ jobs: steps: - uses: actions/checkout@v6 + with: + fetch-depth: '0' + fetch-tags: 'true' - name: Set runner info run: | diff --git a/.github/workflows/instcountci.yml b/.github/workflows/instcountci.yml index 3cf95998f..f109a933a 100644 --- a/.github/workflows/instcountci.yml +++ b/.github/workflows/instcountci.yml @@ -24,6 +24,9 @@ jobs: steps: - uses: actions/checkout@v6 + with: + fetch-depth: '0' + fetch-tags: 'true' - name: Set runner info run: | diff --git a/.github/workflows/mingw_build.yml b/.github/workflows/mingw_build.yml index 564ab4084..df325610a 100644 --- a/.github/workflows/mingw_build.yml +++ b/.github/workflows/mingw_build.yml @@ -21,6 +21,9 @@ jobs: steps: - uses: actions/checkout@v6 + with: + fetch-depth: '0' + fetch-tags: 'true' - name: Set runner label run: echo "runner_label=${{ matrix.arch[1] }}" >> $GITHUB_ENV diff --git a/.github/workflows/steamrt4.yml b/.github/workflows/steamrt4.yml index b14ff11ad..cd6fd5ae4 100644 --- a/.github/workflows/steamrt4.yml +++ b/.github/workflows/steamrt4.yml @@ -24,6 +24,9 @@ jobs: steps: - uses: actions/checkout@v6 + with: + fetch-depth: '0' + fetch-tags: 'true' - name: Set runner label run: echo "runner_label=${{ matrix.arch[1] }}" >> $GITHUB_ENV diff --git a/.github/workflows/vixl_simulator.yml b/.github/workflows/vixl_simulator.yml index 01f9e6369..a17fb7d95 100644 --- a/.github/workflows/vixl_simulator.yml +++ b/.github/workflows/vixl_simulator.yml @@ -26,6 +26,9 @@ jobs: steps: - uses: actions/checkout@v6 + with: + fetch-depth: '0' + fetch-tags: 'true' - name: Set runner info run: | diff --git a/.github/workflows/wine_dll_artifacts.yml b/.github/workflows/wine_dll_artifacts.yml index ebb183943..364b6a3e8 100644 --- a/.github/workflows/wine_dll_artifacts.yml +++ b/.github/workflows/wine_dll_artifacts.yml @@ -18,6 +18,9 @@ jobs: steps: - uses: actions/checkout@v6 + with: + fetch-depth: '0' + fetch-tags: 'true' - name: Add MingGW to PATH run: echo "$HOME/llvm-mingw/build/bin/" >> $GITHUB_PATH @@ -49,4 +52,4 @@ jobs: name: wine_dll_artifacts path: ${{ github.workspace }}/install/usr/lib/wine/aarch64-windows/lib*.dll retention-days: 60 - compression-level: 9 \ No newline at end of file + compression-level: 9 diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c4fd489ce..1e843181a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,6 +1,7 @@ variables: DEBIAN_FRONTEND: noninteractive GIT_SUBMODULE_STRATEGY: recursive + GIT_DEPTH: 0 CC: clang CXX: clang++