Merge pull request #1797 from adriadam10/ci/keep-main-cache

ci: save the compiler cache before the tests
This commit is contained in:
Adrià 2026-10-08 21:40:48 +02:00 committed by GitHub
commit 4b6ab6bb73
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 14 additions and 2 deletions

View File

@ -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