@@ -2,7 +2,7 @@ name: Publish (core)
2
2
3
3
concurrency :
4
4
group : ${{ github.workflow }}-${{ github.ref }}
5
- cancel-in-progress : ${{ github.event_name != 'push' }}
5
+ cancel-in-progress : true
6
6
7
7
env :
8
8
DEBUG : napi:*
@@ -202,6 +202,7 @@ jobs:
202
202
options : -v ${{ env.HOME }}/.cargo/git:/root/.cargo/git -v ${{ env.HOME }}/.cargo/registry:/root/.cargo/registry -v ${{ github.workspace }}:/build -w /build
203
203
run : >-
204
204
cd ./packages/core &&
205
+ npm install -f -g [email protected] &&
205
206
corepack enable &&
206
207
npm i -g wasm-pack &&
207
208
${{ matrix.settings.build }}
@@ -232,7 +233,7 @@ jobs:
232
233
target : x86_64-apple-darwin
233
234
node :
234
235
- " 18"
235
- # - "20"
236
+ - " 20"
236
237
runs-on : ${{ matrix.settings.host }}
237
238
steps :
238
239
- uses : actions/checkout@v4
@@ -270,7 +271,7 @@ jobs:
270
271
matrix :
271
272
node :
272
273
- " 18"
273
- # - "20"
274
+ - " 20"
274
275
runs-on : ubuntu-latest
275
276
steps :
276
277
- uses : actions/checkout@v4
@@ -294,7 +295,7 @@ jobs:
294
295
- name : Build TypeScript
295
296
run : yarn build:ts
296
297
- name : Test bindings
297
- run : docker run --rm -v $(pwd):/swc -w /swc node:${{ matrix.node }}-slim env DISABLE_PLUGIN_E2E_TESTS=true yarn test
298
+ run :
docker run --rm -v $(pwd):/swc -w /swc node:${{ matrix.node }}-slim sh -c 'npm install -f -g [email protected] && env DISABLE_PLUGIN_E2E_TESTS=true yarn test'
298
299
test-linux-x64-musl-binding :
299
300
if : ${{ startsWith(github.ref, 'refs/tags/v') || startsWith(github.ref, 'refs/heads/ci') }}
300
301
name : Test bindings on x86_64-unknown-linux-musl - node@${{ matrix.node }}
@@ -305,7 +306,7 @@ jobs:
305
306
matrix :
306
307
node :
307
308
- " 18"
308
- # - "20"
309
+ - " 20"
309
310
runs-on : ubuntu-latest
310
311
steps :
311
312
- uses : actions/checkout@v4
@@ -332,46 +333,47 @@ jobs:
332
333
- name : Build TypeScript
333
334
run : yarn build:ts
334
335
- name : Test bindings
335
- run : docker run --rm -v $(pwd):/swc -w /swc node:${{ matrix.node }}-alpine env DISABLE_PLUGIN_E2E_TESTS=true yarn test
336
- # test-linux-aarch64-musl-binding:
337
- # if: ${{ startsWith(github.ref, 'refs/tags/v') || startsWith(github.ref, 'refs/heads/ci') }}
338
- # name: Test bindings on aarch64-unknown-linux-musl - node@lts
339
- # needs:
340
- # - build
341
- # runs-on: ubuntu-latest
342
- # steps:
343
- # - uses: actions/checkout@v4
344
- # - name: Corepack
345
- # run: corepack enable
346
- # - name: Download artifacts
347
- # uses: actions/download-artifact@v3
348
- # with:
349
- # name: bindings-aarch64-unknown-linux-musl
350
- # path: ./packages/core
351
- # - name: List packages
352
- # run: ls -R .
353
- # shell: bash
354
- # - name: Install dependencies
355
- # run: |
356
- # corepack enable
357
- # yarn config set supportedArchitectures.cpu "arm64"
358
- # yarn config set supportedArchitectures.libc "musl"
359
- # yarn install
360
- # - name: Build TypeScript
361
- # run: yarn build:ts
362
- # - name: Set up QEMU
363
- # uses: docker/setup-qemu-action@v2
364
- # with:
365
- # platforms: arm64
366
- # - run: docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
367
- # - name: Setup and run tests
368
- # uses: addnab/docker-run-action@v3
369
- # with:
370
- # image: node:lts-alpine
371
- # options: "--platform linux/arm64 -v ${{ github.workspace }}:/build -w /build"
372
- # run: >-
373
- # set -e &&
374
- # DISABLE_PLUGIN_E2E_TESTS=true yarn test
336
+ run :
docker run --rm -v $(pwd):/swc -w /swc node:${{ matrix.node }}-alpine sh -c 'npm install -f -g [email protected] && env DISABLE_PLUGIN_E2E_TESTS=true yarn test'
337
+ test-linux-aarch64-musl-binding :
338
+ if : ${{ startsWith(github.ref, 'refs/tags/v') || startsWith(github.ref, 'refs/heads/ci') }}
339
+ name : Test bindings on aarch64-unknown-linux-musl - node@lts
340
+ needs :
341
+ - build
342
+ runs-on : ubuntu-latest
343
+ steps :
344
+ - uses : actions/checkout@v4
345
+ - name : Corepack
346
+ run : corepack enable
347
+ - name : Download artifacts
348
+ uses : actions/download-artifact@v3
349
+ with :
350
+ name : bindings-aarch64-unknown-linux-musl
351
+ path : ./packages/core
352
+ - name : List packages
353
+ run : ls -R .
354
+ shell : bash
355
+ - name : Install dependencies
356
+ run : |
357
+ corepack enable
358
+ yarn config set supportedArchitectures.cpu "arm64"
359
+ yarn config set supportedArchitectures.libc "musl"
360
+ yarn install
361
+ - name : Build TypeScript
362
+ run : yarn build:ts
363
+ - name : Set up QEMU
364
+ uses : docker/setup-qemu-action@v2
365
+ with :
366
+ platforms : arm64
367
+ - run : docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
368
+ - name : Setup and run tests
369
+ uses : addnab/docker-run-action@v3
370
+ with :
371
+ image : node:lts-alpine
372
+ options : " --platform linux/arm64 -v ${{ github.workspace }}:/build -w /build"
373
+ run : >-
374
+ set -e &&
375
+ npm install -f -g [email protected] &&
376
+ DISABLE_PLUGIN_E2E_TESTS=true yarn test
375
377
376
378
test-linux-arm-gnueabihf-binding :
377
379
if : ${{ startsWith(github.ref, 'refs/tags/v') || startsWith(github.ref, 'refs/heads/ci') }}
@@ -383,7 +385,7 @@ jobs:
383
385
matrix :
384
386
node :
385
387
- " 18"
386
- # - "20"
388
+ - " 20"
387
389
runs-on : ubuntu-latest
388
390
steps :
389
391
- uses : actions/checkout@v4
@@ -416,6 +418,7 @@ jobs:
416
418
options : " --platform linux/arm/v7 -v ${{ github.workspace }}:/build -w /build"
417
419
run : >-
418
420
set -e &&
421
+ npm install -f -g [email protected] &&
419
422
DISABLE_PLUGIN_E2E_TESTS=true yarn test &&
420
423
ls -la
421
424
publish :
@@ -426,7 +429,7 @@ jobs:
426
429
- test-linux-x64-musl-binding
427
430
- test-linux-arm-gnueabihf-binding
428
431
- test-macOS-windows-binding
429
- # - test-linux-aarch64-musl-binding
432
+ - test-linux-aarch64-musl-binding
430
433
steps :
431
434
- uses : actions/checkout@v4
432
435
0 commit comments