Skip to content

Add native binaries to release #2

Add native binaries to release

Add native binaries to release #2

Workflow file for this run

name: Add native binaries to release
on:
release:
types: [created]
workflow_dispatch:
jobs:
prebuild:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04, macos-latest, windows-latest]
fail-fast: false
steps:
- uses: actions/checkout@v3
- name: Use Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18.x
- 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: Build
run: |
npm install --ignore-scripts
- name: Prebuild
run: |
npm run prebuild
- name: Upload
run: |
npx prebuild --upload ${{ secrets.UPLOAD_TOKEN }}
env:
MAKEFLAGS: -j4
prebuild-alpine:
runs-on: ubuntu-latest
container: node:18-alpine3.18
steps:
- uses: actions/checkout@v3
- name: install build deps
run: |
apk add g++ make python3
- name: Build
run: |
npm install --ignore-scripts
- name: Prebuild
run: |
npm run prebuild
- name: Upload
run: |
npx prebuild --upload ${{ secrets.UPLOAD_TOKEN }}
env:
MAKEFLAGS: -j4