File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change 18
18
- stable
19
19
- beta
20
20
- nightly
21
- # When updating this value, don't forget to also adjust the
22
- # `rust-version` field in the `Cargo.toml` file.
23
- - 1.49.0
24
21
25
22
include :
26
23
- rust : nightly
@@ -51,10 +48,16 @@ jobs:
51
48
- name : Checkout
52
49
uses : actions/checkout@v3
53
50
54
- - name : Install Rust
51
+ - name : Get MSRV from package metadata
52
+ id : metadata
53
+ run : |
54
+ cargo metadata --no-deps --format-version 1 |
55
+ jq -r '"msrv=" + (.packages[] | select(.name == "http")).rust_version' >> $GITHUB_OUTPUT
56
+
57
+ - name : Install Rust (${{ steps.metadata.outputs.msrv }})
55
58
uses : dtolnay/rust-toolchain@master
56
59
with :
57
- toolchain : " 1.49 "
60
+ toolchain : ${{ steps.metadata.outputs.msrv }}
58
61
59
62
- name : Test
60
63
run : cargo test -p http
You can’t perform that action at this time.
0 commit comments