File tree Expand file tree Collapse file tree 1 file changed +14
-6
lines changed Expand file tree Collapse file tree 1 file changed +14
-6
lines changed Original file line number Diff line number Diff line change @@ -62,13 +62,10 @@ jobs:
62
62
- run : cargo test
63
63
64
64
msrv :
65
- name : Check MSRV (${{ matrix.rust }})
65
+ name : Check MSRV
66
66
needs : [style]
67
67
strategy :
68
68
matrix :
69
- rust :
70
- - 1.63 # keep in sync with MSRV.md dev doc
71
-
72
69
os :
73
70
- ubuntu-latest
74
71
@@ -77,10 +74,21 @@ jobs:
77
74
steps :
78
75
- uses : actions/checkout@v4
79
76
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 }})
81
89
uses : dtolnay/rust-toolchain@master
82
90
with :
83
- toolchain : ${{ matrix.rust }}
91
+ toolchain : ${{ steps.msrv.outputs.version }}
84
92
85
93
- run : cargo check --features vendored
86
94
You can’t perform that action at this time.
0 commit comments