From 079f3b759dfca63a91c7181d1006fa36cd21a3a3 Mon Sep 17 00:00:00 2001 From: Dean Galvin Date: Sat, 10 Oct 2026 16:50:01 +1300 Subject: [PATCH] ci(build): save the compiler cache from main builds No job saved its ccache, so every build restored a day-old cache and recompiled about half the tree (971/2038 hits). Main push builds now save it, and they no longer cancel each other, so one finishes and refreshes it. Pull request builds still only restore, so PR code never writes the shared cache. --- .github/workflows/build.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b9963ffe5..015b9f748 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -18,7 +18,7 @@ permissions: concurrency: group: build-${{ github.event_name }}-${{ github.event.pull_request.number || inputs.pr || github.ref }} - cancel-in-progress: true + cancel-in-progress: ${{ github.event_name != 'push' }} env: CONFIGURE: >- @@ -200,7 +200,7 @@ jobs: - uses: hendrikmuhs/ccache-action@v1.2.24 with: key: linux - save: false + save: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} evict-old-files: job - name: Install lavapipe for the GPU execution tests run: sudo apt-get update && sudo apt-get install -y --no-install-recommends libvulkan1 mesa-vulkan-drivers @@ -264,7 +264,7 @@ jobs: - uses: hendrikmuhs/ccache-action@v1.2.24 with: key: windows - save: false + save: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} evict-old-files: job - shell: cmd run: cmake -S . -B build %CONFIGURE%