File tree 2 files changed +9
-12
lines changed 2 files changed +9
-12
lines changed Original file line number Diff line number Diff line change @@ -94,26 +94,23 @@ jobs:
94
94
args : --benches ${{ matrix.features }}
95
95
96
96
msrv :
97
- name : Check MSRV (${{ matrix.rust }})
97
+ name : Check MSRV
98
98
needs : [style]
99
- strategy :
100
- matrix :
101
- rust :
102
- - 1.56 # keep in sync with MSRV.md dev doc
103
-
104
- os :
105
- - ubuntu-latest
106
99
107
- runs-on : ${{ matrix.os }}
100
+ runs-on : ubuntu-latest
108
101
109
102
steps :
110
103
- name : Checkout
111
104
uses : actions/checkout@v3
112
105
113
- - name : Install Rust (${{ matrix.rust }})
106
+ - name : Get MSRV from package metadata
107
+ id : msrv
108
+ run : grep rust-version Cargo.toml | cut -d'"' -f2 | sed 's/^/version=/' >> $GITHUB_OUTPUT
109
+
110
+ - name : Install Rust (${{ steps.msrv.outputs.version }})
114
111
uses : dtolnay/rust-toolchain@master
115
112
with :
116
- toolchain : ${{ matrix.rust }}
113
+ toolchain : ${{ steps.msrv.outputs.version }}
117
114
118
115
- name : Check
119
116
uses : actions-rs/cargo@v1
Original file line number Diff line number Diff line change 11
11
keywords = [" http" , " hyper" , " hyperium" ]
12
12
categories = [" network-programming" , " web-programming::http-client" , " web-programming::http-server" ]
13
13
edition = " 2018"
14
- rust-version = " 1.56"
14
+ rust-version = " 1.56" # keep in sync with MSRV.md dev doc
15
15
16
16
include = [
17
17
" Cargo.toml" ,
You can’t perform that action at this time.
0 commit comments