Some checks failed
Test / test_cross (16.x) (push) Failing after 2m15s
Test / test_cross (18.x) (push) Failing after 2m48s
Test / test_cross (19.x) (push) Failing after 2m47s
Test / test_cross (17.x) (push) Failing after 2m51s
Test / test_cross (20.x) (push) Failing after 1m34s
Test / test_cross (21.x) (push) Failing after 1m21s
58 lines
1.4 KiB
YAML
58 lines
1.4 KiB
YAML
name: Test
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
test_cross:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
node_version:
|
|
- 16.x
|
|
- 17.x
|
|
- 18.x
|
|
- 19.x
|
|
- 20.x
|
|
- 21.x
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
name: Checkout
|
|
|
|
- uses: actions/setup-node@v4
|
|
name: Setup Node.js
|
|
with:
|
|
node-version: ${{ matrix.node_version }}
|
|
|
|
- name: "Setup zig"
|
|
uses: korandoru/setup-zig@v1
|
|
with:
|
|
zig-version: "master"
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
export DEBIAN_FRONTEND=noninteractive
|
|
sudo apt update
|
|
sudo apt install -y "build-essential"
|
|
npm install --no-save
|
|
cd test
|
|
npm install --no-save --ignore-scripts
|
|
|
|
- name: Test linux x64 and arm64
|
|
run: node --no-warnings --loader ts-node/esm ./src/bin/index.ts build -w ./test --target "x86_64-linux-gnu" --target "aarch64-linux-gnu"
|
|
|
|
- name: Test macos x64 and arm64
|
|
run: node --no-warnings --loader ts-node/esm ./src/bin/index.ts build -w ./test --target "x86_64-macos" --target "aarch64-macos"
|
|
|
|
- name: Upload prebuilds interface
|
|
uses: actions/upload-artifact@v3
|
|
if: always()
|
|
with:
|
|
retention-days: 7
|
|
name: build_${{ matrix.node_version }}
|
|
path: "test/build"
|