Hammer1279 f88ddbe53d
Some checks failed
Node.js CI / build (x64, linux) (push) Has been cancelled
Node.js CI / build (x64, win) (push) Has been cancelled
.github/workflows/pkg.yml aktualisiert
2025-03-19 15:06:17 +00:00

44 lines
1.1 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@v6
with:
entrypoint: index.js
arch: ${{ matrix.arch }}
# node-version: 20
os: ${{ matrix.os }}
env:
PKG_ARCH: ${{ matrix.arch }}
PKG_OS: ${{ matrix.os }}