From fe7e0e60984c88588117e66c48391a6538fc69d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A0=20Franch?= Date: Thu, 8 Oct 2026 21:24:42 +0200 Subject: [PATCH] ci: save the compiler cache before the tests Co-Authored-By: Claude --- .github/workflows/build.yml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a1bb62e8d..68dcab35c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -96,7 +96,7 @@ jobs: - uses: hendrikmuhs/ccache-action@v1.2.24 with: key: linux - save: ${{ github.event_name == 'push' }} + save: false 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 @@ -105,6 +105,12 @@ jobs: run: python3 tools/check_test_registration.py build - run: cmake --build build - run: cmake --build build --target libs + - name: Save the compiler cache before the tests + if: github.event_name == 'push' + uses: actions/cache/save@v6 + with: + path: ${{ github.workspace }}/.ccache + key: ccache-linux-${{ github.run_id }}-${{ github.run_attempt }} - run: ctest --test-dir build --output-on-failure --timeout 120 --repeat until-fail:3 --parallel 4 --output-log ctest.log env: ANYPS5_REQUIRE_VULKAN: 1 @@ -146,7 +152,7 @@ jobs: - uses: hendrikmuhs/ccache-action@v1.2.24 with: key: windows - save: ${{ github.event_name == 'push' }} + save: false evict-old-files: job - shell: cmd run: cmake -S . -B build %CONFIGURE% @@ -157,6 +163,12 @@ jobs: run: cmake --build build - shell: cmd run: cmake --build build --target libs + - name: Save the compiler cache before the tests + if: github.event_name == 'push' + uses: actions/cache/save@v6 + with: + path: ${{ github.workspace }}\.ccache + key: ccache-windows-${{ github.run_id }}-${{ github.run_attempt }} - shell: cmd run: ctest --test-dir build --output-on-failure --timeout 120 --repeat until-fail:3 --parallel 4 --output-log ctest.log - name: Report tests slower than 30 s