@@ -19,26 +19,18 @@ jobs:
19
19
- uses : actions/checkout@v4
20
20
21
21
- name : Install stable
22
- uses : actions-rs/ toolchain@v1
22
+ uses : dtolnay/rust- toolchain@master
23
23
with :
24
- profile : minimal
25
24
# TODO: Should ideally be stable, but we use some nightly-only
26
25
# features.
27
26
toolchain : nightly
28
- override : true
29
27
components : rustfmt, clippy
30
28
31
29
- name : Run rustfmt
32
- uses : actions-rs/cargo@v1
33
- with :
34
- command : fmt
35
- args : -- --check
30
+ run : cargo fmt -- --check
36
31
37
32
- name : Run clippy
38
- uses : actions-rs/cargo@v1
39
- with :
40
- command : clippy
41
- args : --tests
33
+ run : cargo clippy --tests
42
34
43
35
msrv :
44
36
runs-on : ubuntu-latest
73
65
- uses : actions/checkout@v4
74
66
75
67
- name : Install stable
76
- uses : actions-rs/ toolchain@v1
68
+ uses : dtolnay/rust- toolchain@master
77
69
with :
78
- profile : minimal
79
70
toolchain : stable
80
- override : true
81
71
82
72
- name : Check without default features
83
73
run : cargo check -p bindgen --no-default-features --features=runtime
90
80
- uses : actions/checkout@v4
91
81
92
82
- name : Install stable
93
- uses : actions-rs/ toolchain@v1
83
+ uses : dtolnay/rust- toolchain@master
94
84
with :
95
- profile : minimal
96
85
toolchain : stable
97
- override : true
98
86
99
87
- name : Generate documentation for `bindgen`
100
88
run : cargo doc --document-private-items --no-deps -p bindgen
@@ -108,11 +96,9 @@ jobs:
108
96
- uses : actions/checkout@v4
109
97
110
98
- name : Install stable
111
- uses : actions-rs/ toolchain@v1
99
+ uses : dtolnay/rust- toolchain@master
112
100
with :
113
- profile : minimal
114
101
toolchain : stable
115
- override : true
116
102
117
103
# TODO: Actually run quickchecks once `bindgen` is reliable enough.
118
104
- name : Build quickcheck tests
@@ -127,11 +113,9 @@ jobs:
127
113
- uses : actions/checkout@v4
128
114
129
115
- name : Install stable
130
- uses : actions-rs/ toolchain@v1
116
+ uses : dtolnay/rust- toolchain@master
131
117
with :
132
- profile : minimal
133
118
toolchain : stable
134
- override : true
135
119
136
120
- name : Test expectations
137
121
run : cd bindgen-tests/tests/expectations && cargo test
@@ -205,12 +189,10 @@ jobs:
205
189
sudo apt-get install libc6:${{matrix.target.debian}} libstdc++6:${{matrix.target.debian}}
206
190
207
191
- name : Install stable
208
- uses : actions-rs/ toolchain@v1
192
+ uses : dtolnay/rust- toolchain@master
209
193
with :
210
- profile : minimal
211
194
toolchain : stable
212
195
target : ${{matrix.target.rust}}
213
- override : true
214
196
- name : Install libtinfo
215
197
if : matrix.os == 'ubuntu-latest'
216
198
run : |
@@ -237,11 +219,9 @@ jobs:
237
219
- uses : actions/checkout@v4
238
220
239
221
- name : Install nightly
240
- uses : actions-rs/ toolchain@v1
222
+ uses : dtolnay/rust- toolchain@master
241
223
with :
242
- profile : minimal
243
224
toolchain : nightly
244
- override : true
245
225
246
226
- name : Check cfg
247
227
run : cargo check -Z unstable-options -Z check-cfg
0 commit comments