@@ -19,26 +19,18 @@ jobs:
1919 - uses : actions/checkout@v4
2020
2121 - name : Install stable
22- uses : actions-rs/ toolchain@v1
22+ uses : dtolnay/rust- toolchain@master
2323 with :
24- profile : minimal
2524 # TODO: Should ideally be stable, but we use some nightly-only
2625 # features.
2726 toolchain : nightly
28- override : true
2927 components : rustfmt, clippy
3028
3129 - name : Run rustfmt
32- uses : actions-rs/cargo@v1
33- with :
34- command : fmt
35- args : -- --check
30+ run : cargo fmt -- --check
3631
3732 - name : Run clippy
38- uses : actions-rs/cargo@v1
39- with :
40- command : clippy
41- args : --tests
33+ run : cargo clippy --tests
4234
4335 msrv :
4436 runs-on : ubuntu-latest
7365 - uses : actions/checkout@v4
7466
7567 - name : Install stable
76- uses : actions-rs/ toolchain@v1
68+ uses : dtolnay/rust- toolchain@master
7769 with :
78- profile : minimal
7970 toolchain : stable
80- override : true
8171
8272 - name : Check without default features
8373 run : cargo check -p bindgen --no-default-features --features=runtime
9080 - uses : actions/checkout@v4
9181
9282 - name : Install stable
93- uses : actions-rs/ toolchain@v1
83+ uses : dtolnay/rust- toolchain@master
9484 with :
95- profile : minimal
9685 toolchain : stable
97- override : true
9886
9987 - name : Generate documentation for `bindgen`
10088 run : cargo doc --document-private-items --no-deps -p bindgen
@@ -108,11 +96,9 @@ jobs:
10896 - uses : actions/checkout@v4
10997
11098 - name : Install stable
111- uses : actions-rs/ toolchain@v1
99+ uses : dtolnay/rust- toolchain@master
112100 with :
113- profile : minimal
114101 toolchain : stable
115- override : true
116102
117103 # TODO: Actually run quickchecks once `bindgen` is reliable enough.
118104 - name : Build quickcheck tests
@@ -127,11 +113,9 @@ jobs:
127113 - uses : actions/checkout@v4
128114
129115 - name : Install stable
130- uses : actions-rs/ toolchain@v1
116+ uses : dtolnay/rust- toolchain@master
131117 with :
132- profile : minimal
133118 toolchain : stable
134- override : true
135119
136120 - name : Test expectations
137121 run : cd bindgen-tests/tests/expectations && cargo test
@@ -205,12 +189,10 @@ jobs:
205189 sudo apt-get install libc6:${{matrix.target.debian}} libstdc++6:${{matrix.target.debian}}
206190
207191 - name : Install stable
208- uses : actions-rs/ toolchain@v1
192+ uses : dtolnay/rust- toolchain@master
209193 with :
210- profile : minimal
211194 toolchain : stable
212195 target : ${{matrix.target.rust}}
213- override : true
214196 - name : Install libtinfo
215197 if : matrix.os == 'ubuntu-latest'
216198 run : |
@@ -237,11 +219,9 @@ jobs:
237219 - uses : actions/checkout@v4
238220
239221 - name : Install nightly
240- uses : actions-rs/ toolchain@v1
222+ uses : dtolnay/rust- toolchain@master
241223 with :
242- profile : minimal
243224 toolchain : nightly
244- override : true
245225
246226 - name : Check cfg
247227 run : cargo check -Z unstable-options -Z check-cfg
0 commit comments