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