@@ -33,29 +33,22 @@ jobs:
33
33
34
34
runs-on : ${{matrix.os}}
35
35
36
- container :
37
- image : ghcr.io/rescript-lang/rescript-ci-build:alpine-3.19-ocaml-5.1.1-01
38
-
39
36
steps :
40
- # See https://github.com/actions/runner/issues/801#issuecomment-1374967227.
41
- - name : Workaround for Github actions runner on Alpine arm64
42
- if : runner.arch == 'ARM64'
43
- run : sed -i "s:ID=alpine:ID=NotpineForGHA:" /etc/os-release
44
-
45
37
- name : Checkout
46
- uses : actions/checkout@v3
38
+ uses : actions/checkout@v4
47
39
48
40
- name : Build compiler binaries
49
- run : opam exec -- dune build --display quiet --profile static
41
+ uses : docker://ghcr.io/rescript-lang/rescript-ci-build:alpine-3.19-ocaml-5.1.1-01
42
+ with :
43
+ args : opam exec -- dune build --display quiet --profile static
50
44
51
45
- name : Build ninja binary
52
- working-directory : ninja
53
- env :
54
- LDFLAGS : -static
55
- run : python3 configure.py --bootstrap --verbose
46
+ uses : docker://ghcr.io/rescript-lang/rescript-ci-build:alpine-3.19-ocaml-5.1.1-01
47
+ with :
48
+ args : sh -c "cd ninja && LDFLAGS=-static python3 configure.py --bootstrap"
56
49
57
50
- name : " Upload artifacts"
58
- uses : actions/upload-artifact@v3
51
+ uses : actions/upload-artifact@v4
59
52
with :
60
53
name : static-binaries-linux-${{runner.arch}}
61
54
path : |
@@ -72,11 +65,11 @@ jobs:
72
65
73
66
steps :
74
67
- name : Checkout
75
- uses : actions/checkout@v3
68
+ uses : actions/checkout@v4
76
69
77
70
- name : Download static linux binaries
78
71
if : runner.os == 'Linux'
79
- uses : actions/download-artifact@v3
72
+ uses : actions/download-artifact@v4
80
73
with :
81
74
name : static-binaries-linux-${{ runner.arch }}
82
75
87
80
chmod +x _build/install/default/bin/*
88
81
89
82
- name : Use Node.js
90
- uses : actions/setup-node@v3
83
+ uses : actions/setup-node@v4
91
84
with :
92
85
node-version : 16
93
86
98
91
run : node .github/workflows/get_artifact_info.js
99
92
100
93
- name : " Upload artifacts: binaries"
101
- uses : actions/upload-artifact@v3
94
+ uses : actions/upload-artifact@v4
102
95
with :
103
96
name : ${{ env.artifact_name }}
104
97
path : ${{ env.artifact_path }}
@@ -130,13 +123,13 @@ jobs:
130
123
git config --global core.eol lf
131
124
132
125
- name : Checkout
133
- uses : actions/checkout@v3
126
+ uses : actions/checkout@v4
134
127
with :
135
128
fetch-depth : 2 # to be able to check for changes in subfolder jscomp/syntax later
136
129
137
130
- name : Download static linux binaries
138
131
if : runner.os == 'Linux'
139
- uses : actions/download-artifact@v3
132
+ uses : actions/download-artifact@v4
140
133
with :
141
134
name : static-binaries-linux-${{ runner.arch }}
142
135
@@ -174,7 +167,7 @@ jobs:
174
167
run : opam exec -- dune build --display quiet --profile release
175
168
176
169
- name : Use Node.js
177
- uses : actions/setup-node@v3
170
+ uses : actions/setup-node@v4
178
171
with :
179
172
node-version : 16
180
173
@@ -183,7 +176,7 @@ jobs:
183
176
184
177
- name : " Windows: Use MSVC for ninja build"
185
178
if : runner.os == 'Windows'
186
- uses : TheMrMilchmann/setup-msvc-dev@v2
179
+ uses : TheMrMilchmann/setup-msvc-dev@v3
187
180
with :
188
181
arch : x64
189
182
@@ -263,14 +256,14 @@ jobs:
263
256
run : node .github/workflows/get_artifact_info.js
264
257
265
258
- name : " Upload artifacts: binaries"
266
- uses : actions/upload-artifact@v3
259
+ uses : actions/upload-artifact@v4
267
260
with :
268
261
name : ${{ env.artifact_name }}
269
262
path : ${{ env.artifact_path }}
270
263
271
264
- name : " Upload artifacts: lib/ocaml"
272
265
if : runner.os == 'Linux'
273
- uses : actions/upload-artifact@v3
266
+ uses : actions/upload-artifact@v4
274
267
with :
275
268
name : lib-ocaml
276
269
path : lib/ocaml
@@ -281,18 +274,18 @@ jobs:
281
274
282
275
steps :
283
276
- name : Checkout
284
- uses : actions/checkout@v3
277
+ uses : actions/checkout@v4
285
278
286
279
- name : Use Node.js
287
- uses : actions/setup-node@v3
280
+ uses : actions/setup-node@v4
288
281
with :
289
282
node-version : 16
290
283
291
284
- name : NPM install
292
285
run : npm ci --ignore-scripts
293
286
294
287
- name : Download artifacts
295
- uses : actions/download-artifact@v3
288
+ uses : actions/download-artifact@v4
296
289
297
290
- name : Move artifacts
298
291
run : ./scripts/moveArtifacts.sh
@@ -315,7 +308,7 @@ jobs:
315
308
run : node .github/workflows/prepare_package_upload.js ${{ github.event.pull_request.head.sha }}
316
309
317
310
- name : " Upload artifact: npm packages"
318
- uses : actions/upload-artifact@v3
311
+ uses : actions/upload-artifact@v4
319
312
with :
320
313
name : npm-packages
321
314
path : |
@@ -342,15 +335,15 @@ jobs:
342
335
343
336
steps :
344
337
- name : Checkout
345
- uses : actions/checkout@v3
338
+ uses : actions/checkout@v4
346
339
347
340
- name : Use Node.js
348
- uses : actions/setup-node@v3
341
+ uses : actions/setup-node@v4
349
342
with :
350
343
node-version : 16
351
344
352
345
- name : Download artifacts
353
- uses : actions/download-artifact@v3
346
+ uses : actions/download-artifact@v4
354
347
with :
355
348
name : npm-packages
356
349
path : packages/test
@@ -374,16 +367,16 @@ jobs:
374
367
375
368
steps :
376
369
- name : Checkout
377
- uses : actions/checkout@v3
370
+ uses : actions/checkout@v4
378
371
379
372
- name : Use Node.js
380
- uses : actions/setup-node@v3
373
+ uses : actions/setup-node@v4
381
374
with :
382
375
node-version : 16
383
376
registry-url : https://registry.npmjs.org # Needed to make auth work for publishing
384
377
385
378
- name : Download artifacts
386
- uses : actions/download-artifact@v3
379
+ uses : actions/download-artifact@v4
387
380
with :
388
381
name : npm-packages
389
382
0 commit comments