File tree Expand file tree Collapse file tree 1 file changed +13
-5
lines changed Expand file tree Collapse file tree 1 file changed +13
-5
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments