Test / linux_test (16.x, aarch64, windows) (pull_request) Failing after 2m42s
Test / linux_test (16.x, aarch64, linux) (pull_request) Failing after 2m47s
Test / linux_test (16.x, aarch64, macos) (pull_request) Failing after 2m45s
Test / linux_test (16.x, x86_64, linux) (pull_request) Failing after 2m42s
Test / linux_test (16.x, x86_64, windows) (pull_request) Failing after 2m36s
Test / linux_test (16.x, x86_64, macos) (pull_request) Failing after 2m52s
Test / linux_test (18.x, aarch64, macos) (pull_request) Failing after 3m11s
Test / linux_test (18.x, aarch64, linux) (pull_request) Failing after 3m13s
Test / linux_test (18.x, aarch64, windows) (pull_request) Failing after 2m54s
Test / linux_test (18.x, x86_64, linux) (pull_request) Failing after 2m42s
Test / linux_test (18.x, x86_64, macos) (pull_request) Failing after 3m15s
Test / linux_test (18.x, x86_64, windows) (pull_request) Failing after 3m13s
Test / linux_test (19.x, aarch64, macos) (pull_request) Failing after 3m8s
Test / linux_test (19.x, aarch64, windows) (pull_request) Failing after 3m11s
Test / linux_test (19.x, x86_64, linux) (pull_request) Failing after 3m9s
Test / linux_test (19.x, x86_64, windows) (pull_request) Failing after 3m12s
Test / linux_test (19.x, x86_64, macos) (pull_request) Failing after 3m14s
Test / linux_test (20.x, aarch64, linux) (pull_request) Failing after 3m9s
Test / linux_test (20.x, aarch64, macos) (pull_request) Failing after 3m7s
Test / linux_test (20.x, aarch64, windows) (pull_request) Failing after 3m7s
Test / linux_test (20.x, x86_64, linux) (pull_request) Failing after 3m6s
Test / linux_test (20.x, x86_64, macos) (pull_request) Failing after 3m12s
Test / linux_test (20.x, x86_64, windows) (pull_request) Failing after 3m10s
Test / linux_test (21.x, aarch64, linux) (pull_request) Failing after 3m12s
Test / linux_test (21.x, aarch64, macos) (pull_request) Failing after 3m10s
Test / linux_test (21.x, aarch64, windows) (pull_request) Failing after 3m14s
Test / linux_test (21.x, x86_64, macos) (pull_request) Failing after 2m10s
Test / linux_test (21.x, x86_64, windows) (pull_request) Failing after 2m8s
Test / Pack npm package (pull_request) Has been skipped
Test / linux_test (19.x, aarch64, linux) (pull_request) Failing after 3m11s
Test / linux_test (21.x, x86_64, linux) (pull_request) Failing after 3m12s
Signed-off-by: Matheus Sampaio Queiroga <srherobrine20@gmail.com>
84 lines
2.1 KiB
YAML
84 lines
2.1 KiB
YAML
name: Test
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
linux_test:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
node_version: [ 16.x, 18.x, 19.x, 20.x, 21.x ]
|
|
target_os: [ "windows", "linux", "macos" ]
|
|
target_arch: [ "x86_64", "aarch64" ]
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
name: Checkout
|
|
|
|
- uses: goto-bus-stop/setup-zig@v2
|
|
name: "Setup zig"
|
|
|
|
- uses: actions/setup-node@v4
|
|
name: Setup Node.js
|
|
with:
|
|
node-version: ${{ matrix.node_version }}
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
export DEBIAN_FRONTEND=noninteractive
|
|
sudo apt update
|
|
sudo apt install -y "binutils-multiarch" "build-essential"
|
|
npm install --no-save --ignore-scripts
|
|
|
|
- name: Build addon
|
|
run: npm run dev -- --target_zig=${{ matrix.target_arch }}-${{ matrix.target_os }}
|
|
env:
|
|
CC: zig cc -target ${{ matrix.target_arch }}-${{ matrix.target_os }}
|
|
CXX: "zig c++ -target ${{ matrix.target_arch }}-${{ matrix.target_os }}"
|
|
AR: "zig ar"
|
|
RANLIB: "zig ranlib"
|
|
|
|
- name: Upload prebuilds interface
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
retention-days: 7
|
|
name: prebuilds_${{ matrix.target_arch }}-${{ matrix.target_os }}_${{ matrix.node_version }}
|
|
path: "prebuilds/**"
|
|
|
|
- name: Test
|
|
run: node --require ts-node/register --loader ts-node/esm ./src/index_test.ts
|
|
|
|
pack_package:
|
|
needs: linux_test
|
|
runs-on: ubuntu-latest
|
|
name: Pack npm package
|
|
env:
|
|
PACKAGE_VERSION: ${{ github.ref }}
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
name: Code checkout
|
|
|
|
- uses: actions/setup-node@v4
|
|
name: Setup node.js
|
|
with:
|
|
node-version: 20.x
|
|
registry-url: https://registry.npmjs.org/
|
|
|
|
- name: Download all artefacts
|
|
uses: actions/download-artifact@v3
|
|
with:
|
|
path: ./prebuilds
|
|
|
|
- run: npm install --no-save --ignore-scripts
|
|
- run: npm pack
|
|
|
|
- name: Upload npm package
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: Package_Pack
|
|
path: "*.tgz"
|