@@ -16,16 +16,17 @@ jobs:
16
16
runs-on : ubuntu-latest
17
17
steps :
18
18
- name : Checkout the source code
19
- uses : actions/checkout@v2
19
+ uses : actions/checkout@v4
20
20
with :
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 :
@@ -73,15 +74,18 @@ jobs:
73
74
runs-on : windows-latest
74
75
steps :
75
76
- name : Checkout the source code
76
- uses : actions/checkout@v2
77
+ uses : actions/checkout@v4
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
@@ -121,15 +125,17 @@ jobs:
121
125
runs-on : ubuntu-latest
122
126
steps :
123
127
- name : Checkout the source code
124
- uses : actions/checkout@v2
128
+ uses : actions/checkout@v4
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 : |
@@ -158,15 +164,17 @@ jobs:
158
164
runs-on : ubuntu-latest
159
165
steps :
160
166
- name : Checkout the source code
161
- uses : actions/checkout@v2
167
+ uses : actions/checkout@v4
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 : |
@@ -192,15 +200,17 @@ jobs:
192
200
runs-on : ubuntu-latest
193
201
steps :
194
202
- name : Checkout the source code
195
- uses : actions/checkout@v2
203
+ uses : actions/checkout@v4
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 : |
@@ -223,15 +233,17 @@ jobs:
223
233
runs-on : ubuntu-22.04
224
234
steps :
225
235
- name : Checkout the source code
226
- uses : actions/checkout@v2
236
+ uses : actions/checkout@v4
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.
@@ -292,12 +304,15 @@ jobs:
292
304
293
305
steps :
294
306
- name : Check out repository code
295
- uses : actions/checkout@v2
307
+ uses : actions/checkout@v4
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
@@ -342,12 +357,15 @@ jobs:
342
357
343
358
steps :
344
359
- name : Check out repository code
345
- uses : actions/checkout@v2
360
+ uses : actions/checkout@v4
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