Skip to content

Commit

Permalink
workflow & scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
kmamal committed Jun 5, 2023
1 parent 1be7ef7 commit 48afb89
Show file tree
Hide file tree
Showing 18 changed files with 603 additions and 4,788 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Build and upload

on: workflow_dispatch

jobs:
build:
name: ${{ matrix.platform.name }} Node.js v${{ matrix.node }}

strategy:
fail-fast: false
matrix:
platform:
- { name: 'Linux (x64)' ,os: ubuntu-22.04 }
- { name: 'Windows (x64)' ,os: windows-2022 }
- { name: 'Mac (x64)' ,os: macos-12 }
- { name: 'Mac (arm64)' ,os: macos-12 ,arch: arm64 }
node: [ 14, 16, 18, 19, 20 ]

runs-on: ${{ matrix.platform.os }}

steps:
- uses: actions/checkout@v3
with:
submodules: true

- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}

- if: ${{ startsWith(matrix.platform.os, 'ubuntu-') }}
run: ./scripts/install-deps-ubuntu.sh

- run: npm run release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CROSS_COMPILE_ARCH: ${{ matrix.platform.arch }}
2 changes: 1 addition & 1 deletion .npmignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
example/*
test/*
.github
.travis.yml
appveyor.yml
build/*
prebuilds/*
scripts/*
4.6.1
5.12.0
6.9.1
Expand Down
Loading

0 comments on commit 48afb89

Please sign in to comment.