Hammer1279 7b6baafc93
All checks were successful
Node.js CI / build (x64, linux) (push) Successful in 30s
Node.js CI / build (x64, win) (push) Successful in 29s
Disable ARM64 architecture in GitHub Actions workflow
Signed-off-by: Hammer1279 <hammer@ht-dev.de>
2025-01-19 00:48:50 +01:00

43 lines
1.0 KiB
YAML

# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
name: Node.js CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
arch:
- x64
# - arm64
os:
- linux
- win
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 20
- name: Install dependencies
run: npm install
- name: Package into node binary
uses: lando/pkg-action@v2
with:
entrypoint: index.js
arch: ${{ matrix.arch }}
os: ${{ matrix.os }}
env:
PKG_ARCH: ${{ matrix.arch }}
PKG_OS: ${{ matrix.os }}