Skip to content

Commit f829daf

Browse files
authored
ci: Improve test-msrv job cache (#3627)
1 parent 4c09ea7 commit f829daf

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/CI.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -125,14 +125,8 @@ jobs:
125125
runs-on: ubuntu-24.04
126126
steps:
127127
- uses: actions/checkout@v6
128-
- uses: dtolnay/rust-toolchain@master
129-
with:
130-
toolchain: ${{ env.MSRV }}
131128
- name: "install Rust nightly"
132129
uses: dtolnay/rust-toolchain@nightly
133-
- uses: Swatinem/rust-cache@v2
134-
with:
135-
save-if: ${{ github.ref == 'refs/heads/main' }}
136130
- name: Select minimal version
137131
run: cargo +nightly update -Z minimal-versions
138132
- name: Fix up Cargo.lock - crc32fast
@@ -141,6 +135,12 @@ jobs:
141135
run : cargo +nightly update -p [email protected] --precise 0.1.4
142136
- name: Fix up Cargo.lock - lazy_static
143137
run: cargo +nightly update -p lazy_static --precise 1.1.0
138+
- uses: dtolnay/rust-toolchain@master
139+
with:
140+
toolchain: ${{ env.MSRV }}
141+
- uses: Swatinem/rust-cache@v2
142+
with:
143+
save-if: ${{ github.ref == 'refs/heads/main' }}
144144
- name: Run tests
145145
run: >
146146
cargo +${{ env.MSRV }}

0 commit comments

Comments
 (0)