File tree 2 files changed +9
-9
lines changed
2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -37,25 +37,25 @@ jobs:
37
37
steps :
38
38
- uses : actions/checkout@v4
39
39
40
+ - name : Read crate metadata
41
+ id : metadata
42
+ run : echo "rust-version=$(sed -ne 's/rust-version *= *\"\(.*\)\"/\1/p' Cargo.toml)" >> $GITHUB_OUTPUT
43
+
40
44
- name : Install msrv for lib
41
45
uses : dtolnay/rust-toolchain@master
42
46
with :
43
- # MSRV below is documented in Cargo.toml and README.md, please update those if you
44
- # change this.
45
- toolchain : 1.70.0
47
+ toolchain : ${{ steps.metadata.outputs.rust-version }}
46
48
47
49
- name : Test lib with msrv
48
- run : cargo +1.70.0 test --package bindgen
50
+ run : cargo +${{ steps.metadata.outputs.rust-version }} test --package bindgen
49
51
50
52
- name : Install msrv for cli
51
53
uses : dtolnay/rust-toolchain@master
52
54
with :
53
- # MSRV below is documented in Cargo.toml and README.md, please update those if you
54
- # change this.
55
- toolchain : 1.70.0
55
+ toolchain : ${{ steps.metadata.outputs.rust-version }}
56
56
57
57
- name : Test cli with msrv
58
- run : cargo +1.70.0 build --package bindgen-cli
58
+ run : cargo +${{ steps.metadata.outputs.rust-version }} build --package bindgen-cli
59
59
60
60
minimal :
61
61
runs-on : ubuntu-latest
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ default-members = [
15
15
]
16
16
17
17
[workspace .package ]
18
- # If you change this, also update README.md and msrv in .github/workflows/bindgen.yml
18
+ # If you change this, also update README.md
19
19
rust-version = " 1.70.0"
20
20
edition = " 2021"
21
21
You can’t perform that action at this time.
0 commit comments