29
29
strategy :
30
30
fail-fast : false
31
31
matrix :
32
- os : [ubuntu-latest, buildjet-2vcpu- ubuntu-2204 -arm]
32
+ os : [ubuntu-24.04, ubuntu-24.04 -arm]
33
33
34
34
runs-on : ${{matrix.os}}
35
35
61
61
needs :
62
62
- static-binaries-linux
63
63
64
- runs-on : buildjet-2vcpu- ubuntu-2204 -arm
64
+ runs-on : ubuntu-24.04 -arm
65
65
66
66
steps :
67
67
- name : Checkout
82
82
- name : Use Node.js
83
83
uses : actions/setup-node@v4
84
84
with :
85
- node-version : 16
85
+ node-version : 18
86
86
87
87
- name : Copy exes to platform bin dirs
88
88
run : node ./scripts/copyExes.js
@@ -105,7 +105,7 @@ jobs:
105
105
os : [
106
106
macos-13, # x64
107
107
macos-14, # ARM
108
- ubuntu-latest ,
108
+ ubuntu-24.04 ,
109
109
windows-latest,
110
110
]
111
111
ocaml_compiler : [4.14.1]
@@ -140,20 +140,18 @@ jobs:
140
140
chmod +x _build/install/default/bin/*
141
141
142
142
- name : Use OCaml ${{matrix.ocaml_compiler}}
143
- uses : ocaml/setup-ocaml@v2
143
+ uses : ocaml/setup-ocaml@v3.2.5
144
144
if : matrix.os != 'windows-latest'
145
145
with :
146
146
ocaml-compiler : ${{matrix.ocaml_compiler}}
147
147
opam-pin : false
148
- opam-depext : false
149
148
150
149
- name : Use OCaml ${{matrix.ocaml_compiler}} (Win)
151
- uses : ocaml/setup-ocaml@v2
150
+ uses : ocaml/setup-ocaml@v3.2.5
152
151
if : matrix.os == 'windows-latest'
153
152
with :
154
153
ocaml-compiler : ${{matrix.ocaml_compiler}}
155
154
opam-pin : false
156
- opam-depext : false
157
155
opam-repositories : |
158
156
opam-repository-mingw: https://github.com/ocaml-opam/opam-repository-mingw.git#sunset
159
157
default: https://github.com/ocaml/opam-repository.git
@@ -168,7 +166,7 @@ jobs:
168
166
- name : Use Node.js
169
167
uses : actions/setup-node@v4
170
168
with :
171
- node-version : 16
169
+ node-version : 18
172
170
173
171
- name : Install npm packages
174
172
run : npm ci --ignore-scripts
@@ -228,24 +226,24 @@ jobs:
228
226
if : runner.os == 'Windows'
229
227
run : node scripts/ciTest.js -mocha -theme -format
230
228
231
- # Build the playground compiler on the fastest runner (ubuntu-latest )
229
+ # Build the playground compiler on the fastest runner (ubuntu-24.04 )
232
230
- name : Install JSOO
233
- if : matrix.os == 'ubuntu-latest '
231
+ if : matrix.os == 'ubuntu-24.04 '
234
232
run : opam install js_of_ocaml.4.0.0
235
233
236
234
- name : Build playground compiler
237
- if : matrix.os == 'ubuntu-latest '
235
+ if : matrix.os == 'ubuntu-24.04 '
238
236
run : |
239
237
opam exec -- node packages/playground-bundling/scripts/generate_cmijs.js
240
238
opam exec -- dune build --profile browser
241
239
cp ./_build/default/jscomp/jsoo/jsoo_playground_main.bc.js playground/compiler.js
242
240
243
241
- name : Test playground compiler
244
- if : matrix.os == 'ubuntu-latest '
242
+ if : matrix.os == 'ubuntu-24.04 '
245
243
run : node playground/playground_test.js
246
244
247
245
- name : Upload playground compiler to CDN
248
- if : ${{ matrix.os == 'ubuntu-latest ' && startsWith(github.ref, 'refs/tags/v') }}
246
+ if : ${{ matrix.os == 'ubuntu-24.04 ' && startsWith(github.ref, 'refs/tags/v') }}
249
247
env :
250
248
KEYCDN_USER : ${{ secrets.KEYCDN_USER }}
251
249
KEYCDN_PASSWORD : ${{ secrets.KEYCDN_PASSWORD }}
@@ -269,7 +267,7 @@ jobs:
269
267
270
268
package :
271
269
needs : build
272
- runs-on : ubuntu-latest
270
+ runs-on : ubuntu-24.04
273
271
274
272
steps :
275
273
- name : Checkout
@@ -278,7 +276,7 @@ jobs:
278
276
- name : Use Node.js
279
277
uses : actions/setup-node@v4
280
278
with :
281
- node-version : 16
279
+ node-version : 18
282
280
283
281
- name : NPM install
284
282
run : npm ci --ignore-scripts
@@ -289,11 +287,8 @@ jobs:
289
287
- name : Move artifacts
290
288
run : ./scripts/moveArtifacts.sh
291
289
292
- - name : Check artifact list
293
- run : node ./scripts/makeArtifactList.js -check
294
-
295
- - name : npm pack (rescript)
296
- run : npm pack
290
+ - name : npm pack (rescript) + check artifact list
291
+ run : node ./scripts/npmPack.js
297
292
298
293
- name : Copy JS files to stdlib package
299
294
run : mkdir -p packages/std/lib && cp -R lib/es6 lib/js packages/std/lib
@@ -325,8 +320,8 @@ jobs:
325
320
os : [
326
321
macos-13, # x64
327
322
macos-14, # ARM
328
- ubuntu-latest ,
329
- buildjet-2vcpu- ubuntu-2204 -arm,
323
+ ubuntu-24.04 ,
324
+ ubuntu-24.04 -arm,
330
325
windows-latest,
331
326
]
332
327
@@ -339,7 +334,7 @@ jobs:
339
334
- name : Use Node.js
340
335
uses : actions/setup-node@v4
341
336
with :
342
- node-version : 16
337
+ node-version : 18
343
338
344
339
- name : Download artifacts
345
340
uses : actions/download-artifact@v4
@@ -362,7 +357,7 @@ jobs:
362
357
363
358
if : startsWith(github.ref, 'refs/tags/v')
364
359
365
- runs-on : ubuntu-latest
360
+ runs-on : ubuntu-24.04
366
361
367
362
steps :
368
363
- name : Checkout
@@ -371,7 +366,7 @@ jobs:
371
366
- name : Use Node.js
372
367
uses : actions/setup-node@v4
373
368
with :
374
- node-version : 16
369
+ node-version : 18
375
370
registry-url : https://registry.npmjs.org # Needed to make auth work for publishing
376
371
377
372
- name : Download artifacts
0 commit comments