mirror of
https://github.com/tokio-rs/axum.git
synced 2026-09-07 00:00:12 +02:00
ci: Improve test-msrv job cache (#3627)
This commit is contained in:
@@ -125,14 +125,8 @@ jobs:
|
|||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-24.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v6
|
- uses: actions/checkout@v6
|
||||||
- uses: dtolnay/rust-toolchain@master
|
|
||||||
with:
|
|
||||||
toolchain: ${{ env.MSRV }}
|
|
||||||
- name: "install Rust nightly"
|
- name: "install Rust nightly"
|
||||||
uses: dtolnay/rust-toolchain@nightly
|
uses: dtolnay/rust-toolchain@nightly
|
||||||
- uses: Swatinem/rust-cache@v2
|
|
||||||
with:
|
|
||||||
save-if: ${{ github.ref == 'refs/heads/main' }}
|
|
||||||
- name: Select minimal version
|
- name: Select minimal version
|
||||||
run: cargo +nightly update -Z minimal-versions
|
run: cargo +nightly update -Z minimal-versions
|
||||||
- name: Fix up Cargo.lock - crc32fast
|
- name: Fix up Cargo.lock - crc32fast
|
||||||
@@ -141,6 +135,12 @@ jobs:
|
|||||||
run : cargo +nightly update -p [email protected] --precise 0.1.4
|
run : cargo +nightly update -p [email protected] --precise 0.1.4
|
||||||
- name: Fix up Cargo.lock - lazy_static
|
- name: Fix up Cargo.lock - lazy_static
|
||||||
run: cargo +nightly update -p lazy_static --precise 1.1.0
|
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
|
- name: Run tests
|
||||||
run: >
|
run: >
|
||||||
cargo +${{ env.MSRV }}
|
cargo +${{ env.MSRV }}
|
||||||
|
|||||||
Reference in New Issue
Block a user