33
33
uses : actions/checkout@v4
34
34
35
35
- name : Install Rust
36
- uses : actions-rs/ toolchain@v1
36
+ uses : dtolnay/rust- toolchain@stable
37
37
with :
38
- profile : minimal
39
- toolchain : stable
40
- override : true
41
38
components : rustfmt
42
39
43
40
- name : cargo fmt --check
78
75
uses : actions/checkout@v4
79
76
80
77
- name : Install Rust (${{ matrix.rust }})
81
- uses : actions-rs/ toolchain@v1
78
+ uses : dtolnay/rust- toolchain@stable
82
79
with :
83
- profile : minimal
84
80
toolchain : ${{ matrix.rust }}
85
- override : true
86
81
87
82
- name : Test
88
83
uses : actions-rs/cargo@v1
@@ -115,11 +110,9 @@ jobs:
115
110
uses : actions/checkout@v4
116
111
117
112
- name : Install Rust (${{ matrix.rust }})
118
- uses : actions-rs/ toolchain@v1
113
+ uses : dtolnay/rust- toolchain@stable
119
114
with :
120
- profile : minimal
121
115
toolchain : ${{ matrix.rust }}
122
- override : true
123
116
124
117
- name : Check
125
118
uses : actions-rs/cargo@v1
@@ -137,12 +130,9 @@ jobs:
137
130
uses : actions/checkout@v4
138
131
139
132
- name : Install Rust
140
- uses : actions-rs/ toolchain@v1
133
+ uses : dtolnay/rust- toolchain@nightly
141
134
with :
142
- profile : minimal
143
- toolchain : nightly
144
135
components : miri
145
- override : true
146
136
147
137
- name : Test
148
138
# Can't enable tcp feature since Miri does not support the tokio runtime
@@ -157,11 +147,7 @@ jobs:
157
147
uses : actions/checkout@v4
158
148
159
149
- name : Install Rust
160
- uses : actions-rs/toolchain@v1
161
- with :
162
- profile : minimal
163
- toolchain : nightly
164
- override : true
150
+ uses : dtolnay/rust-toolchain@nightly
165
151
166
152
- name : Install cargo-hack
167
153
run : cargo install cargo-hack
@@ -185,11 +171,9 @@ jobs:
185
171
uses : actions/checkout@v4
186
172
187
173
- name : Install Rust (${{ matrix.rust }})
188
- uses : actions-rs/ toolchain@v1
174
+ uses : dtolnay/rust- toolchain@stable
189
175
with :
190
- profile : minimal
191
176
toolchain : ${{ matrix.rust }}
192
- override : true
193
177
194
178
- name : Check
195
179
uses : actions-rs/cargo@v1
@@ -206,11 +190,7 @@ jobs:
206
190
uses : actions/checkout@v4
207
191
208
192
- name : Install Rust
209
- uses : actions-rs/toolchain@v1
210
- with :
211
- profile : minimal
212
- toolchain : nightly
213
- override : true
193
+ uses : dtolnay/rust-toolchain@nightly
214
194
215
195
- name : Install cbindgen
216
196
uses : actions-rs/cargo@v1
@@ -245,13 +225,7 @@ jobs:
245
225
uses : actions/checkout@v4
246
226
247
227
- name : Install Rust
248
- uses : actions-rs/toolchain@v1
249
- with :
250
- profile : minimal
251
- toolchain : nightly
252
- default : true
253
- override : true
254
- components : cargo
228
+ uses : dtolnay/rust-toolchain@nightly
255
229
256
230
- name : Install cbindgen
257
231
uses : actions-rs/cargo@v1
@@ -279,11 +253,7 @@ jobs:
279
253
uses : actions/checkout@v4
280
254
281
255
- name : Install Rust
282
- uses : actions-rs/toolchain@v1
283
- with :
284
- profile : minimal
285
- toolchain : nightly
286
- override : true
256
+ uses : dtolnay/rust-toolchain@nightly
287
257
288
258
- name : cargo doc
289
259
uses : actions-rs/cargo@v1
0 commit comments