ci: Use nightly version as a cache prefix in jobs using both nightly and stable

This way we make sure that the cache is invalidated once we are on a new
nightly version.
reviewable/pr1409/r8
Michal R 2 weeks ago
parent c0fdbae155
commit ba71e5d4e1

@ -153,6 +153,10 @@ jobs:
- uses: dtolnay/rust-toolchain@stable - uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2 - uses: Swatinem/rust-cache@v2
env:
# Use the nightly toolchain as part of the cache key so that any
# change in the nightly version automatically invalidates the cache.
RUSTUP_TOOLCHAIN: nightly
- run: cargo install --git https://github.com/aya-rs/bpf-linker.git bpf-linker --features llvm-21 - run: cargo install --git https://github.com/aya-rs/bpf-linker.git bpf-linker --features llvm-21
@ -295,6 +299,10 @@ jobs:
targets: aarch64-unknown-linux-musl,x86_64-unknown-linux-musl targets: aarch64-unknown-linux-musl,x86_64-unknown-linux-musl
- uses: Swatinem/rust-cache@v2 - uses: Swatinem/rust-cache@v2
env:
# Use the nightly toolchain as part of the cache key so that any
# change in the nightly version automatically invalidates the cache.
RUSTUP_TOOLCHAIN: nightly
- name: Install libLLVM - name: Install libLLVM
# Download libLLVM from Rust CI to ensure that the libLLVM version # Download libLLVM from Rust CI to ensure that the libLLVM version

Loading…
Cancel
Save