Skip to content

Commit ef776f7

Browse files
committed
chore(ci): use msrv aware dependency resolver
1 parent fa3c7cb commit ef776f7

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

.github/workflows/CI.yml

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,10 @@ jobs:
6262
- run: cargo test
6363

6464
msrv:
65-
name: Check MSRV (${{ matrix.rust }})
65+
name: Check MSRV
6666
needs: [style]
6767
strategy:
6868
matrix:
69-
rust:
70-
- 1.63 # keep in sync with MSRV.md dev doc
71-
7269
os:
7370
- ubuntu-latest
7471

@@ -77,10 +74,21 @@ jobs:
7774
steps:
7875
- uses: actions/checkout@v4
7976

80-
- name: Install Rust (${{ matrix.rust }})
77+
- uses: dtolnay/rust-toolchain@stable
78+
79+
- name: Resolve MSRV aware dependencies
80+
run: cargo update
81+
env:
82+
CARGO_RESOLVER_INCOMPATIBLE_RUST_VERSIONS: fallback
83+
84+
- name: Get MSRV from package metadata
85+
id: msrv
86+
run: echo "version=$(yq '.package.rust-version' Cargo.toml)" >> $GITHUB_OUTPUT
87+
88+
- name: Install Rust (${{ steps.msrv.outputs.version }})
8189
uses: dtolnay/rust-toolchain@master
8290
with:
83-
toolchain: ${{ matrix.rust }}
91+
toolchain: ${{ steps.msrv.outputs.version }}
8492

8593
- run: cargo check --features vendored
8694

0 commit comments

Comments
 (0)