@@ -33,29 +33,22 @@ jobs:
3333
3434 runs-on : ${{matrix.os}}
3535
36- container :
37- image : ghcr.io/rescript-lang/rescript-ci-build:alpine-3.19-ocaml-4.14.1-02
38-
3936 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-
4537 - name : Checkout
46- uses : actions/checkout@v3
38+ uses : actions/checkout@v4
4739
4840 - 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-4.14.1-02
42+ with :
43+ args : opam exec -- dune build --display quiet --profile static
5044
5145 - 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-4.14.1-02
47+ with :
48+ args : sh -c "cd ninja && LDFLAGS=-static python3 configure.py --bootstrap"
5649
5750 - name : " Upload artifacts"
58- uses : actions/upload-artifact@v3
51+ uses : actions/upload-artifact@v4
5952 with :
6053 name : static-binaries-linux-${{runner.arch}}
6154 path : |
@@ -72,11 +65,11 @@ jobs:
7265
7366 steps :
7467 - name : Checkout
75- uses : actions/checkout@v3
68+ uses : actions/checkout@v4
7669
7770 - name : Download static linux binaries
7871 if : runner.os == 'Linux'
79- uses : actions/download-artifact@v3
72+ uses : actions/download-artifact@v4
8073 with :
8174 name : static-binaries-linux-${{ runner.arch }}
8275
8780 chmod +x _build/install/default/bin/*
8881
8982 - name : Use Node.js
90- uses : actions/setup-node@v3
83+ uses : actions/setup-node@v4
9184 with :
9285 node-version : 16
9386
9891 run : node .github/workflows/get_artifact_info.js
9992
10093 - name : " Upload artifacts: binaries"
101- uses : actions/upload-artifact@v3
94+ uses : actions/upload-artifact@v4
10295 with :
10396 name : ${{ env.artifact_name }}
10497 path : ${{ env.artifact_path }}
@@ -130,13 +123,13 @@ jobs:
130123 git config --global core.eol lf
131124
132125 - name : Checkout
133- uses : actions/checkout@v3
126+ uses : actions/checkout@v4
134127 with :
135128 fetch-depth : 2 # to be able to check for changes in subfolder jscomp/syntax later
136129
137130 - name : Download static linux binaries
138131 if : runner.os == 'Linux'
139- uses : actions/download-artifact@v3
132+ uses : actions/download-artifact@v4
140133 with :
141134 name : static-binaries-linux-${{ runner.arch }}
142135
@@ -173,7 +166,7 @@ jobs:
173166 run : opam exec -- dune build --display quiet --profile release
174167
175168 - name : Use Node.js
176- uses : actions/setup-node@v3
169+ uses : actions/setup-node@v4
177170 with :
178171 node-version : 16
179172
@@ -182,7 +175,7 @@ jobs:
182175
183176 - name : " Windows: Use MSVC for ninja build"
184177 if : runner.os == 'Windows'
185- uses : TheMrMilchmann/setup-msvc-dev@v2
178+ uses : TheMrMilchmann/setup-msvc-dev@v3
186179 with :
187180 arch : x64
188181
@@ -262,14 +255,14 @@ jobs:
262255 run : node .github/workflows/get_artifact_info.js
263256
264257 - name : " Upload artifacts: binaries"
265- uses : actions/upload-artifact@v3
258+ uses : actions/upload-artifact@v4
266259 with :
267260 name : ${{ env.artifact_name }}
268261 path : ${{ env.artifact_path }}
269262
270263 - name : " Upload artifacts: lib/ocaml"
271264 if : runner.os == 'Linux'
272- uses : actions/upload-artifact@v3
265+ uses : actions/upload-artifact@v4
273266 with :
274267 name : lib-ocaml
275268 path : lib/ocaml
@@ -280,18 +273,18 @@ jobs:
280273
281274 steps :
282275 - name : Checkout
283- uses : actions/checkout@v3
276+ uses : actions/checkout@v4
284277
285278 - name : Use Node.js
286- uses : actions/setup-node@v3
279+ uses : actions/setup-node@v4
287280 with :
288281 node-version : 16
289282
290283 - name : NPM install
291284 run : npm ci --ignore-scripts
292285
293286 - name : Download artifacts
294- uses : actions/download-artifact@v3
287+ uses : actions/download-artifact@v4
295288
296289 - name : Move artifacts
297290 run : ./scripts/moveArtifacts.sh
@@ -314,7 +307,7 @@ jobs:
314307 run : node .github/workflows/prepare_package_upload.js ${{ github.event.pull_request.head.sha }}
315308
316309 - name : " Upload artifact: npm packages"
317- uses : actions/upload-artifact@v3
310+ uses : actions/upload-artifact@v4
318311 with :
319312 name : npm-packages
320313 path : |
@@ -341,15 +334,15 @@ jobs:
341334
342335 steps :
343336 - name : Checkout
344- uses : actions/checkout@v3
337+ uses : actions/checkout@v4
345338
346339 - name : Use Node.js
347- uses : actions/setup-node@v3
340+ uses : actions/setup-node@v4
348341 with :
349342 node-version : 16
350343
351344 - name : Download artifacts
352- uses : actions/download-artifact@v3
345+ uses : actions/download-artifact@v4
353346 with :
354347 name : npm-packages
355348 path : packages/test
@@ -373,16 +366,16 @@ jobs:
373366
374367 steps :
375368 - name : Checkout
376- uses : actions/checkout@v3
369+ uses : actions/checkout@v4
377370
378371 - name : Use Node.js
379- uses : actions/setup-node@v3
372+ uses : actions/setup-node@v4
380373 with :
381374 node-version : 16
382375 registry-url : https://registry.npmjs.org # Needed to make auth work for publishing
383376
384377 - name : Download artifacts
385- uses : actions/download-artifact@v3
378+ uses : actions/download-artifact@v4
386379 with :
387380 name : npm-packages
388381
0 commit comments