ci: Improve test-msrv job cache (#3627)

This commit is contained in:
tottoto
2026-01-11 19:36:33 +09:00
committed by GitHub
parent 4c09ea7d80
commit f829daf094
+6 -6
View File
@@ -125,14 +125,8 @@ jobs:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v6
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ env.MSRV }}
- name: "install Rust nightly"
uses: dtolnay/rust-toolchain@nightly
- uses: Swatinem/rust-cache@v2
with:
save-if: ${{ github.ref == 'refs/heads/main' }}
- name: Select minimal version
run: cargo +nightly update -Z minimal-versions
- name: Fix up Cargo.lock - crc32fast
@@ -141,6 +135,12 @@ jobs:
run : cargo +nightly update -p [email protected] --precise 0.1.4
- name: Fix up Cargo.lock - lazy_static
run: cargo +nightly update -p lazy_static --precise 1.1.0
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ env.MSRV }}
- uses: Swatinem/rust-cache@v2
with:
save-if: ${{ github.ref == 'refs/heads/main' }}
- name: Run tests
run: >
cargo +${{ env.MSRV }}