@@ -25,35 +25,29 @@ jobs:
25
25
runs-on : ubuntu-latest
26
26
steps :
27
27
- name : Checkout
28
- uses : actions/checkout@v3
28
+ uses : actions/checkout@v4
29
29
with :
30
- submodules : ' recursive'
30
+ submodules : " recursive"
31
31
32
32
- uses : actions/setup-python@v4
33
33
with :
34
- python-version : ' 3.12'
34
+ python-version : " 3.12"
35
35
36
36
- name : Install latest Rust stable toolchain
37
- uses : actions-rs/ toolchain@v1
37
+ uses : dtolnay/rust- toolchain@stable
38
38
with :
39
- toolchain : stable
40
- default : true
39
+ targets : wasm32-wasi wasm32-unknown-unknown
41
40
components : clippy, rustfmt
42
41
43
42
- name : Install latest Rust nightly toolchain
44
- uses : actions-rs/ toolchain@v1
43
+ uses : dtolnay/rust- toolchain@nightly
45
44
with :
46
- toolchain : nightly
47
- default : false
45
+ targets : wasm32-wasi wasm32-unknown-unknown
48
46
49
47
- name : Install Rust std source
50
48
shell : bash
51
49
run : rustup component add rust-src --toolchain nightly
52
50
53
- - name : Install Wasm Rust targets
54
- shell : bash
55
- run : rustup target add wasm32-wasi wasm32-unknown-unknown
56
-
57
51
- uses : Swatinem/rust-cache@v2
58
52
with :
59
53
shared-key : " rust-cache-${{ hashFiles('./Cargo.lock') }}"
69
63
70
64
- name : Cache CPython
71
65
id : cache-cpython-wasi
72
- uses : actions/cache@v3
66
+ uses : actions/cache@v4
73
67
with :
74
68
path : cpython/builddir/wasi
75
69
key : cpython-wasi
@@ -106,7 +100,7 @@ jobs:
106
100
buildArgs : " --target aarch64-unknown-linux-gnu" ,
107
101
target : " aarch64-unknown-linux-gnu" ,
108
102
targetDir : " target/aarch64-unknown-linux-gnu/release" ,
109
- }
103
+ }
110
104
- {
111
105
os : " macos-latest" ,
112
106
arch : " amd64" ,
@@ -139,36 +133,28 @@ jobs:
139
133
}
140
134
steps :
141
135
- name : Checkout
142
- uses : actions/checkout@v3
136
+ uses : actions/checkout@v4
143
137
with :
144
- submodules : ' recursive'
138
+ submodules : " recursive"
145
139
146
140
- uses : actions/setup-python@v4
147
141
with :
148
- python-version : ' 3.12'
142
+ python-version : " 3.12"
149
143
150
144
- name : Install latest Rust stable toolchain
151
- uses : actions-rs/ toolchain@v1
145
+ uses : dtolnay/rust- toolchain@stable
152
146
with :
153
- toolchain : stable
154
- default : true
155
- target : ${{ matrix.config.target }}
147
+ targets : ${{ matrix.config.target }}
156
148
157
149
- name : Install latest Rust nightly toolchain
158
- uses : actions-rs/ toolchain@v1
150
+ uses : dtolnay/rust- toolchain@nightly
159
151
with :
160
- toolchain : nightly
161
- default : false
162
- target : ${{ matrix.config.target }}
152
+ targets : ${{ matrix.config.target }}
163
153
164
154
- name : Install Rust std source
165
155
shell : bash
166
156
run : rustup component add rust-src --toolchain nightly
167
157
168
- - name : Install Wasm Rust targets
169
- shell : bash
170
- run : rustup target add wasm32-wasi wasm32-unknown-unknown
171
-
172
158
- uses : Swatinem/rust-cache@v2
173
159
if : matrix.config.os == 'ubuntu-latest' && matrix.config.arch == 'amd64'
174
160
with :
@@ -211,7 +197,7 @@ jobs:
211
197
212
198
- name : Restore CPython
213
199
id : cache-cpython-wasi
214
- uses : actions/cache/restore@v3
200
+ uses : actions/cache/restore@v4
215
201
with :
216
202
path : cpython/builddir/wasi
217
203
key : cpython-wasi
@@ -252,16 +238,16 @@ jobs:
252
238
componentize-py${{ matrix.config.extension }}
253
239
254
240
- name : Upload wheels
255
- uses : actions/upload-artifact@v3
241
+ uses : actions/upload-artifact@v4
256
242
with :
257
243
name : componentize-py
258
244
path : dist
259
245
260
246
- name : Upload build artifact
261
- uses : actions/upload-artifact@v3
247
+ uses : actions/upload-artifact@v4
262
248
with :
263
- name : componentize-py
264
- path : _dist/componentize-py-${{ env.RELEASE_VERSION }}-${{ env.RUNNER_OS }}-${{ matrix.config.arch }}.tar.gz
249
+ name : componentize-py
250
+ path : _dist/componentize-py-${{ env.RELEASE_VERSION }}-${{ env.RUNNER_OS }}-${{ matrix.config.arch }}.tar.gz
265
251
266
252
- name : Upload binary to Github release (tag)
267
253
if : startsWith(github.ref, 'refs/tags/v')
@@ -287,15 +273,15 @@ jobs:
287
273
run : echo "RELEASE_VERSION=canary" >> $GITHUB_ENV
288
274
289
275
- name : Download release assets
290
- uses : actions/download-artifact@v3
276
+ uses : actions/download-artifact@v4
291
277
with :
292
- name : componentize-py
278
+ name : componentize-py
293
279
294
280
- name : Generate checksums
295
281
run : |
296
282
sha256sum componentize-py-${{ env.RELEASE_VERSION }}*.tar.gz > checksums-${{ env.RELEASE_VERSION }}.txt
297
283
298
- - uses : actions/upload-artifact@v3
284
+ - uses : actions/upload-artifact@v4
299
285
with :
300
286
name : componentize-py
301
287
path : checksums-${{ env.RELEASE_VERSION }}.txt
@@ -313,17 +299,17 @@ jobs:
313
299
runs-on : ubuntu-latest
314
300
steps :
315
301
- name : Checkout
316
- uses : actions/checkout@v3
302
+ uses : actions/checkout@v4
317
303
with :
318
- submodules : ' recursive'
319
-
304
+ submodules : " recursive"
305
+
320
306
- name : Build sdist
321
307
uses : PyO3/maturin-action@v1
322
308
with :
323
309
command : sdist
324
310
args : --out dist
325
311
- name : Upload sdist
326
- uses : actions/upload-artifact@v3
312
+ uses : actions/upload-artifact@v4
327
313
with :
328
314
name : componentize-py
329
315
path : dist
@@ -335,19 +321,17 @@ jobs:
335
321
runs-on : ubuntu-latest
336
322
steps :
337
323
- name : Download release assets
338
- uses : actions/download-artifact@v3
324
+ uses : actions/download-artifact@v4
339
325
with :
340
- name : componentize-py
326
+ name : componentize-py
341
327
342
328
- name : Delete canary tag
343
- uses : dev-drprasad/ delete-tag-and-release@v0.2.1
329
+ run : gh release delete --cleanup-tag -y
344
330
env :
345
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
346
- with :
347
- tag_name : canary
331
+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
348
332
349
333
- name : Recreate canary tag and release
350
- uses : ncipollo/release-action@v1.10.0
334
+ uses : ncipollo/release-action@v1
351
335
with :
352
336
tag : canary
353
337
allowUpdates : true
0 commit comments