File tree 1 file changed +10
-11
lines changed 1 file changed +10
-11
lines changed Original file line number Diff line number Diff line change @@ -66,25 +66,24 @@ jobs:
66
66
if : matrix.rust == 'nightly'
67
67
68
68
msrv :
69
- name : Check MSRV (${{ matrix.rust }})
69
+ name : Check MSRV
70
70
needs : [style]
71
- strategy :
72
- matrix :
73
- rust :
74
- - 1.56 # never go past Hyper's own MSRV
75
-
76
- os :
77
- - ubuntu-latest
78
71
79
- runs-on : ${{ matrix.os }}
72
+ runs-on : ubuntu-latest
80
73
81
74
steps :
82
75
- name : Checkout
83
76
uses : actions/checkout@v3
84
77
85
- - name : Install Rust (${{ matrix.rust }})
78
+ - name : Get MSRV from package metadata
79
+ id : metadata
80
+ run : |
81
+ cargo metadata --no-deps --format-version 1 |
82
+ jq -r '"msrv=" + (.packages[] | select(.name == "h2")).rust_version' >> $GITHUB_OUTPUT
83
+
84
+ - name : Install Rust (${{ steps.metadata.outputs.msrv }})
86
85
uses : dtolnay/rust-toolchain@master
87
86
with :
88
- toolchain : ${{ matrix.rust }}
87
+ toolchain : ${{ steps.metadata.outputs.msrv }}
89
88
90
89
- run : cargo check
You can’t perform that action at this time.
0 commit comments