Skip to content

Commit 2a0f7a3

Browse files
authored
ci: use msrv-aware cargo in msrv job (#2779)
1 parent f186803 commit 2a0f7a3

File tree

1 file changed

+6
-12
lines changed

1 file changed

+6
-12
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,12 @@ jobs:
299299
- name: Checkout
300300
uses: actions/checkout@v4
301301

302+
- uses: dtolnay/rust-toolchain@stable
303+
- name: Resolve MSRV aware dependencies
304+
run: cargo update
305+
env:
306+
CARGO_RESOLVER_INCOMPATIBLE_RUST_VERSIONS: fallback
307+
302308
- name: Get MSRV package metadata
303309
id: metadata
304310
run: cargo metadata --no-deps --format-version 1 | jq -r '"msrv=" + .packages[0].rust_version' >> $GITHUB_OUTPUT
@@ -308,18 +314,6 @@ jobs:
308314
with:
309315
toolchain: ${{ steps.metadata.outputs.msrv }}
310316

311-
- name: Fix log and tokio versions
312-
run: |
313-
cargo update
314-
cargo update -p log --precise 0.4.18
315-
cargo update -p tokio --precise 1.29.1
316-
cargo update -p tokio-util --precise 0.7.11
317-
cargo update -p idna_adapter --precise 1.1.0
318-
cargo update -p hashbrown --precise 0.15.0
319-
cargo update -p native-tls --precise 0.2.13
320-
cargo update -p once_cell --precise 1.20.3
321-
cargo update -p tracing-core --precise 0.1.33
322-
323317
- uses: Swatinem/rust-cache@v2
324318

325319
- name: Check

0 commit comments

Comments
 (0)