mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-21 23:11:01 +01:00
ci: Include the runner image version in the cache key (#9544)
This commit is contained in:
1 parent
4c1ea47ea2
commit
42db911ab9
6 files changed
+14
No files matched your search
@@ -244,6 +244,7 @@ jobs:
|
||||
uses: Swatinem/rust-cache@v2
|
||||
with:
|
||||
key: clippy-${{ matrix.target }}-${{ matrix.kind }}-${{ env.CACHE_SUFFIX }}
|
||||
env-vars: ImageVersion
|
||||
save-if: ${{ github.ref == 'refs/heads/trunk' }}
|
||||
|
||||
- name: (Linux `aarch64`) Install `aarch64-linux-gnu` `g++`
|
||||
@@ -417,6 +418,7 @@ jobs:
|
||||
uses: Swatinem/rust-cache@v2
|
||||
with:
|
||||
key: wgpu-msrv-check-${{ matrix.target }}-${{ env.CACHE_SUFFIX }}
|
||||
env-vars: ImageVersion
|
||||
save-if: ${{ github.ref == 'refs/heads/trunk' }}
|
||||
|
||||
- name: Reduce MSRV on dependencies
|
||||
@@ -490,6 +492,7 @@ jobs:
|
||||
uses: Swatinem/rust-cache@v2
|
||||
with:
|
||||
key: core-msrv-check-${{ matrix.target }}-${{ env.CACHE_SUFFIX }}
|
||||
env-vars: ImageVersion
|
||||
save-if: ${{ github.ref == 'refs/heads/trunk' }}
|
||||
|
||||
- name: Reduce MSRV on dependencies
|
||||
@@ -638,6 +641,7 @@ jobs:
|
||||
uses: Swatinem/rust-cache@v2
|
||||
with:
|
||||
key: test-${{ matrix.os }}-${{ env.CACHE_SUFFIX }}
|
||||
env-vars: ImageVersion
|
||||
save-if: ${{ github.ref == 'refs/heads/trunk' }}
|
||||
workspaces: |
|
||||
. -> target
|
||||
@@ -750,6 +754,7 @@ jobs:
|
||||
uses: Swatinem/rust-cache@v2
|
||||
with:
|
||||
key: doctests-${{ env.CACHE_SUFFIX }}
|
||||
env-vars: ImageVersion
|
||||
save-if: ${{ github.ref == 'refs/heads/trunk' }}
|
||||
|
||||
- name: Run doctests
|
||||
@@ -782,6 +787,7 @@ jobs:
|
||||
uses: Swatinem/rust-cache@v2
|
||||
with:
|
||||
key: miri-${{ env.CACHE_SUFFIX }}
|
||||
env-vars: ImageVersion
|
||||
save-if: ${{ github.ref == 'refs/heads/trunk' }}
|
||||
|
||||
- name: Run Miri on selected tests
|
||||
@@ -864,6 +870,7 @@ jobs:
|
||||
uses: Swatinem/rust-cache@v2
|
||||
with:
|
||||
key: cts-runner-${{ env.CACHE_SUFFIX }}
|
||||
env-vars: ImageVersion
|
||||
save-if: ${{ github.ref == 'refs/heads/trunk' }}
|
||||
|
||||
- name: Build Deno
|
||||
|
||||
@@ -100,6 +100,7 @@ jobs:
|
||||
with:
|
||||
# The version number can be incremented for cache busting.
|
||||
prefix-key: v3-rust-${{ hashFiles('cts_runner/revision.txt') }}
|
||||
env-vars: ImageVersion
|
||||
cache-directories: cts
|
||||
# Save the cache from the `other` job because it also runs the cts_runner
|
||||
# integration tests.
|
||||
|
||||
@@ -57,6 +57,7 @@ jobs:
|
||||
uses: Swatinem/rust-cache@v2
|
||||
with:
|
||||
key: doc-build
|
||||
env-vars: ImageVersion
|
||||
save-if: ${{ github.ref == 'refs/heads/trunk' }}
|
||||
|
||||
- name: Build the docs
|
||||
|
||||
@@ -72,6 +72,7 @@ jobs:
|
||||
uses: Swatinem/rust-cache@v2
|
||||
with:
|
||||
key: cargo-generate-${{ matrix.name }}
|
||||
env-vars: ImageVersion
|
||||
save-if: ${{ github.ref == 'refs/heads/trunk' }}
|
||||
|
||||
- name: Install `cargo-generate`
|
||||
|
||||
@@ -62,6 +62,7 @@ jobs:
|
||||
uses: Swatinem/rust-cache@v2
|
||||
with:
|
||||
key: publish-build
|
||||
env-vars: ImageVersion
|
||||
save-if: ${{ github.ref == 'refs/heads/trunk' }}
|
||||
|
||||
- name: Build examples
|
||||
|
||||
@@ -39,6 +39,7 @@ jobs:
|
||||
|
||||
- uses: Swatinem/rust-cache@v2
|
||||
with:
|
||||
env-vars: ImageVersion
|
||||
save-if: ${{ github.ref == 'refs/heads/trunk' }}
|
||||
|
||||
# We must have the FXC job before the DXC job, so the DXC PATH has priority
|
||||
@@ -85,6 +86,7 @@ jobs:
|
||||
|
||||
- uses: Swatinem/rust-cache@v2
|
||||
with:
|
||||
env-vars: ImageVersion
|
||||
save-if: ${{ github.ref == 'refs/heads/trunk' }}
|
||||
|
||||
- run: |
|
||||
@@ -115,6 +117,7 @@ jobs:
|
||||
|
||||
- uses: Swatinem/rust-cache@v2
|
||||
with:
|
||||
env-vars: ImageVersion
|
||||
save-if: ${{ github.ref == 'refs/heads/trunk' }}
|
||||
|
||||
- run: cd naga; cargo xtask validate spv
|
||||
|
||||
Reference in new issue
Block a user