16
16
- uses : actions/checkout@v3
17
17
18
18
- name : Set up Python ${{ matrix.python-version }}
19
- uses : actions/setup-python@v2
19
+ uses : actions/setup-python@v4
20
20
with :
21
21
python-version : " 3.x"
22
22
30
30
- uses : actions/checkout@v3
31
31
32
32
- name : Set up Python ${{ matrix.python-version }}
33
- uses : actions/setup-python@v2
33
+ uses : actions/setup-python@v4
34
34
with :
35
35
python-version : " 3.x"
36
36
@@ -44,16 +44,12 @@ jobs:
44
44
- uses : actions/checkout@v3
45
45
46
46
- name : Set up Python ${{ matrix.python-version }}
47
- uses : actions/setup-python@v2
47
+ uses : actions/setup-python@v4
48
48
with :
49
49
python-version : " 3.x"
50
50
51
51
- name : Install Rust toolchain
52
- uses : actions-rs/toolchain@v1
53
- with :
54
- toolchain : stable
55
- profile : minimal
56
- default : true
52
+ uses : dtolnay/rust-toolchain@stable
57
53
58
54
- run : pip install nox
59
55
@@ -85,18 +81,15 @@ jobs:
85
81
- uses : actions/checkout@v3
86
82
87
83
- name : Set up Python ${{ matrix.python-version }}
88
- uses : actions/setup-python@v2
84
+ uses : actions/setup-python@v4
89
85
with :
90
86
python-version : ${{ matrix.python-version }}
91
87
architecture : ${{ matrix.platform.python-architecture }}
92
88
93
89
- name : Install Rust toolchain
94
- uses : actions-rs/ toolchain@v1
90
+ uses : dtolnay/rust- toolchain@stable
95
91
with :
96
- toolchain : stable
97
- target : ${{ matrix.platform.rust-target }}
98
- profile : minimal
99
- default : true
92
+ targets : ${{ matrix.platform.rust-target }}
100
93
101
94
- name : Install Rust aarch64-apple-darwin target
102
95
if : matrix.platform.os == 'macos-latest'
@@ -148,15 +141,11 @@ jobs:
148
141
steps :
149
142
- uses : actions/checkout@master
150
143
- name : Setup python
151
- uses : actions/setup-python@v2
144
+ uses : actions/setup-python@v4
152
145
with :
153
146
python-version : 3.9
154
147
155
- - uses : actions-rs/toolchain@v1
156
- with :
157
- profile : minimal
158
- toolchain : stable
159
- override : true
148
+ - uses : dtolnay/rust-toolchain@stable
160
149
161
150
- name : Install Rust aarch64-apple-darwin target
162
151
if : matrix.os == 'macos-latest'
@@ -180,7 +169,7 @@ jobs:
180
169
# Now we switch to a differnet Python version and ensure we can install
181
170
# the wheel we just built.
182
171
- name : Setup python
183
- uses : actions/setup-python@v2
172
+ uses : actions/setup-python@v4
184
173
with :
185
174
python-version : " 3.10"
186
175
@@ -251,14 +240,10 @@ jobs:
251
240
steps :
252
241
- uses : actions/checkout@v3
253
242
- name : Setup python
254
- uses : actions/setup-python@v2
243
+ uses : actions/setup-python@v4
255
244
with :
256
245
python-version : 3.8
257
- - uses : actions-rs/toolchain@v1
258
- with :
259
- profile : minimal
260
- toolchain : stable
261
- override : true
246
+ - uses : dtolnay/rust-toolchain@stable
262
247
- name : Install cross
263
248
uses : taiki-e/install-action@v1
264
249
with :
@@ -298,15 +283,12 @@ jobs:
298
283
steps :
299
284
- uses : actions/checkout@v3
300
285
- name : Setup python
301
- uses : actions/setup-python@v2
286
+ uses : actions/setup-python@v4
302
287
with :
303
288
python-version : 3.8
304
- - uses : actions-rs/ toolchain@v1
289
+ - uses : dtolnay/rust- toolchain@stable
305
290
with :
306
- profile : minimal
307
- toolchain : stable
308
- target : aarch64-unknown-linux-gnu
309
- override : true
291
+ targets : aarch64-unknown-linux-gnu
310
292
- name : Install cargo-zigbuild
311
293
run : |
312
294
python3 -m pip install cargo-zigbuild
@@ -345,12 +327,9 @@ jobs:
345
327
runs-on : macos-latest
346
328
steps :
347
329
- uses : actions/checkout@v3
348
- - uses : actions-rs/ toolchain@v1
330
+ - uses : dtolnay/rust- toolchain@stable
349
331
with :
350
- profile : minimal
351
- toolchain : stable
352
- target : aarch64-apple-darwin
353
- override : true
332
+ targets : aarch64-apple-darwin
354
333
355
334
env :
356
335
CIBW_BUILD : cp39-*
@@ -384,11 +363,9 @@ jobs:
384
363
mingw-w64-${{ matrix.arch }}-openssl
385
364
mingw-w64-${{ matrix.arch }}-toolchain
386
365
387
- - uses : actions-rs/ toolchain@v1
366
+ - uses : dtolnay/rust- toolchain@master
388
367
with :
389
- profile : minimal
390
368
toolchain : stable-${{ matrix.rust_target }}
391
- default : true
392
369
393
370
- name : Install test dependencies
394
371
shell : msys2 {0}
@@ -425,18 +402,15 @@ jobs:
425
402
echo "EMSCRIPTEN_VERSION=$EMSCRIPTEN_VERSION" >> $GITHUB_ENV
426
403
echo "PYTHON_VERSION=$PYTHON_VERSION" >> $GITHUB_ENV
427
404
echo "ORIG_PATH=$PATH" >> $GITHUB_ENV
428
- - uses : actions-rs/ toolchain@v1
405
+ - uses : dtolnay/rust- toolchain@nightly
429
406
with :
430
- profile : minimal
431
- toolchain : nightly
432
407
components : rust-src
433
- target : wasm32-unknown-emscripten
434
- override : true
408
+ targets : wasm32-unknown-emscripten
435
409
- uses : mymindstorm/setup-emsdk@v11
436
410
with :
437
411
version : ${{env.EMSCRIPTEN_VERSION}}
438
412
actions-cache-folder : emsdk-cache
439
- - uses : actions/setup-python@v2
413
+ - uses : actions/setup-python@v4
440
414
id : setup-python
441
415
with :
442
416
python-version : ${{env.PYTHON_VERSION}}
@@ -446,7 +420,7 @@ jobs:
446
420
path : |
447
421
tests/pyodide
448
422
key : ${{ hashFiles('tests/*.js') }} - ${{ hashFiles('noxfile.py') }} - ${{ steps.setup-python.outputs.python-path }}
449
- - uses : Swatinem/rust-cache@v1
423
+ - uses : Swatinem/rust-cache@v2
450
424
- name : Test
451
425
run : |
452
426
export PATH=$ORIG_PATH:$PATH
0 commit comments