Merge pull request #5107 from adriadam10/ci/linux-mesa-shader-cache
ci(linux): keep lavapipe's shader cache between builds
This commit is contained in:
commit
14036cb0e8
|
|
@ -241,6 +241,13 @@ jobs:
|
|||
evict-old-files: job
|
||||
- name: Install lavapipe and the SDL audio and XRandR development files
|
||||
run: sudo apt-get update && sudo apt-get install -y --no-install-recommends libvulkan1 mesa-vulkan-drivers libpipewire-0.3-dev libpulse-dev libasound2-dev libxrandr-dev
|
||||
- id: mesa
|
||||
run: echo "version=$(dpkg-query -W -f='${Version}' mesa-vulkan-drivers)" >> "$GITHUB_OUTPUT"
|
||||
- uses: actions/cache/restore@v6
|
||||
with:
|
||||
path: .mesa-shader-cache
|
||||
key: mesa-${{ steps.mesa.outputs.version }}-${{ github.sha }}
|
||||
restore-keys: mesa-${{ steps.mesa.outputs.version }}-
|
||||
- run: cmake -S . -B build $CONFIGURE -DANYPS5_ENABLE_SPIRV_TOOLS=ON
|
||||
- name: Check that every test executable is registered with ctest
|
||||
run: python3 tools/check_test_registration.py build
|
||||
|
|
@ -250,6 +257,12 @@ jobs:
|
|||
env:
|
||||
ANYPS5_REQUIRE_VULKAN: 1
|
||||
GALLIUM_OVERRIDE_CPU_CAPS: avx
|
||||
MESA_SHADER_CACHE_DIR: ${{ github.workspace }}/.mesa-shader-cache
|
||||
- if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' && !cancelled() }}
|
||||
uses: actions/cache/save@v6
|
||||
with:
|
||||
path: .mesa-shader-cache
|
||||
key: mesa-${{ steps.mesa.outputs.version }}-${{ github.sha }}
|
||||
- run: python3 tools/check_skips.py build/ctest.xml
|
||||
- name: Report tests slower than 30 s
|
||||
if: ${{ !cancelled() }}
|
||||
|
|
|
|||
Loading…
Reference in New Issue