Skip to content

Add native binaries to release #9

Add native binaries to release

Add native binaries to release #9

Workflow file for this run

name: Add native binaries to release
on:
push:
tags: ['*']
workflow_dispatch:
jobs:
prebuild:
name: ${{ matrix.os }} / Node ${{ matrix.node }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest, macos-latest, windows-latest ]
node: [ 18.x, 20.x, 22.x ]
steps:
- uses: actions/checkout@v4
- name: Use node ${{ matrix.node }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- name: Add msbuild to PATH
if: matrix.os == 'windows-latest'
uses: microsoft/[email protected]
- name: Install node-gyp
if: matrix.os == 'windows-latest'
run: |
npm install --global node-gyp@latest
- name: Dependencies
run: |
npm install --ignore-scripts
- name: Build
run: |
npm run prebuild
- name: Upload
run: |
npx prebuild --upload ${{ secrets.UPLOAD_TOKEN }}
env:
MAKEFLAGS: -j4
prebuild-alpine:
name: alpine / Node ${{ matrix.node }}
runs-on: ubuntu-latest
container: node:${{ matrix.node }}-alpine
strategy:
matrix:
node: [ 18, 20, 22 ]
steps:
- uses: actions/checkout@v4
- name: install build deps
run: |
apk add g++ make python3
- name: Dependencies
run: |
npm install --ignore-scripts
- name: Build
run: |
npm run prebuild
- name: Upload
run: |
npx prebuild --upload ${{ secrets.UPLOAD_TOKEN }}
env:
MAKEFLAGS: -j4