@@ -21,11 +21,12 @@ jobs:
21
21
fetch-depth : 1
22
22
23
23
- name : Install toolchain
24
- uses : actions-rs/toolchain@v1
25
- with :
26
- toolchain : 1.75.0
27
- override : true
28
- components : rustfmt, clippy
24
+ run : |
25
+ rustup install $RUST_TOOLCHAIN_VERSION
26
+ rustup default $RUST_TOOLCHAIN_VERSION
27
+ rustup component add --toolchain $RUST_TOOLCHAIN_VERSION rustfmt clippy
28
+ env :
29
+ RUST_TOOLCHAIN_VERSION : 1.75.0
29
30
30
31
- uses : Swatinem/rust-cache@v2
31
32
with :
@@ -77,11 +78,14 @@ jobs:
77
78
with :
78
79
fetch-depth : 1
79
80
80
- - name : Install latest beta
81
- uses : actions-rs/toolchain@v1
82
- with :
83
- toolchain : beta
84
- override : true
81
+ - name : Install latest beta toolchain
82
+ run : |
83
+ rustup install %RUST_TOOLCHAIN_VERSION%
84
+ rustup default %RUST_TOOLCHAIN_VERSION%
85
+ rustup component add --toolchain %RUST_TOOLCHAIN_VERSION% rustfmt clippy
86
+ env :
87
+ RUST_TOOLCHAIN_VERSION : beta
88
+ shell : cmd
85
89
86
90
- uses : Swatinem/rust-cache@v2
87
91
with :
90
94
- name : cargo check
91
95
run : cargo check
92
96
env :
93
- RUSTFLAGS : -Dwarnings
97
+ RUSTFLAGS : -Dwarnings
94
98
95
99
- name : Run unit tests
96
100
run : cargo test --all
@@ -125,11 +129,13 @@ jobs:
125
129
with :
126
130
fetch-depth : 1
127
131
128
- - name : Install latest beta
129
- uses : actions-rs/toolchain@v1
130
- with :
131
- toolchain : beta
132
- override : true
132
+ - name : Install latest beta toolchain
133
+ run : |
134
+ rustup install $RUST_TOOLCHAIN_VERSION
135
+ rustup default $RUST_TOOLCHAIN_VERSION
136
+ rustup component add --toolchain $RUST_TOOLCHAIN_VERSION rustfmt clippy
137
+ env :
138
+ RUST_TOOLCHAIN_VERSION : beta
133
139
134
140
- name : Configure environment
135
141
run : |
@@ -162,11 +168,13 @@ jobs:
162
168
with :
163
169
fetch-depth : 1
164
170
165
- - name : Install latest beta
166
- uses : actions-rs/toolchain@v1
167
- with :
168
- toolchain : beta
169
- override : true
171
+ - name : Install latest beta toolchain
172
+ run : |
173
+ rustup install $RUST_TOOLCHAIN_VERSION
174
+ rustup default $RUST_TOOLCHAIN_VERSION
175
+ rustup component add --toolchain $RUST_TOOLCHAIN_VERSION rustfmt clippy
176
+ env :
177
+ RUST_TOOLCHAIN_VERSION : beta
170
178
171
179
- name : Configure environment
172
180
run : |
@@ -196,11 +204,13 @@ jobs:
196
204
with :
197
205
fetch-depth : 1
198
206
199
- - name : Install latest beta
200
- uses : actions-rs/toolchain@v1
201
- with :
202
- toolchain : beta
203
- override : true
207
+ - name : Install latest beta toolchain
208
+ run : |
209
+ rustup install $RUST_TOOLCHAIN_VERSION
210
+ rustup default $RUST_TOOLCHAIN_VERSION
211
+ rustup component add --toolchain $RUST_TOOLCHAIN_VERSION rustfmt clippy
212
+ env :
213
+ RUST_TOOLCHAIN_VERSION : beta
204
214
205
215
- name : Configure environment
206
216
run : |
@@ -227,11 +237,13 @@ jobs:
227
237
with :
228
238
fetch-depth : 1
229
239
230
- - name : Install latest beta
231
- uses : actions-rs/toolchain@v1
232
- with :
233
- toolchain : beta
234
- override : true
240
+ - name : Install latest beta toolchain
241
+ run : |
242
+ rustup install $RUST_TOOLCHAIN_VERSION
243
+ rustup default $RUST_TOOLCHAIN_VERSION
244
+ rustup component add --toolchain $RUST_TOOLCHAIN_VERSION rustfmt clippy
245
+ env :
246
+ RUST_TOOLCHAIN_VERSION : beta
235
247
236
248
# We build a specific version of Valgrind because the one from the Ubuntu 22.04 repositories
237
249
# has problems with Rust debuginfo.
@@ -294,10 +306,13 @@ jobs:
294
306
- name : Check out repository code
295
307
uses : actions/checkout@v2
296
308
297
- - name : Install stable
298
- uses : actions-rs/toolchain@v1
299
- with :
300
- toolchain : stable
309
+ - name : Install latest toolchain
310
+ run : |
311
+ rustup install $RUST_TOOLCHAIN_VERSION
312
+ rustup default $RUST_TOOLCHAIN_VERSION
313
+ rustup component add --toolchain $RUST_TOOLCHAIN_VERSION rustfmt clippy
314
+ env :
315
+ RUST_TOOLCHAIN_VERSION : stable
301
316
302
317
- uses : Swatinem/rust-cache@v2
303
318
@@ -344,10 +359,13 @@ jobs:
344
359
- name : Check out repository code
345
360
uses : actions/checkout@v2
346
361
347
- - name : Install stable
348
- uses : actions-rs/toolchain@v1
349
- with :
350
- toolchain : stable
362
+ - name : Install latest stable toolchain
363
+ run : |
364
+ rustup install $RUST_TOOLCHAIN_VERSION
365
+ rustup default $RUST_TOOLCHAIN_VERSION
366
+ rustup component add --toolchain $RUST_TOOLCHAIN_VERSION rustfmt clippy
367
+ env :
368
+ RUST_TOOLCHAIN_VERSION : stable
351
369
352
370
- name : Install nightly
353
371
run : rustup install nightly
0 commit comments