Skip to content

Commit

Permalink
Build binaries for Alpine
Browse files Browse the repository at this point in the history
  • Loading branch information
orgads committed Jan 28, 2021
1 parent 86c156d commit 6d7174b
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/publish-native-assets-to-github-releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,26 @@ jobs:
pattern: "build/stage/*.tar.gz"
github-token: ${{ secrets.GITHUB_TOKEN }}
release-url: ${{ github.event.release.upload_url }}

alpine-release:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12, 14]
container: node:${{ matrix.node-version }}-alpine3.12
steps:
- uses: actions/checkout@v2
- name: install build deps
run: |
apk add g++ make python2
- name: build using node-pre-gyp
run: |
npm install
npx node-pre-gyp rebuild
npx node-pre-gyp package
- name: Upload native binaries for Node ${{ matrix.node-version }} for alpine
uses: csexton/release-asset-action@v2
with:
pattern: "build/stage/*.tar.gz"
github-token: ${{ secrets.GITHUB_TOKEN }}
release-url: ${{ github.event.release.upload_url }}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"binary": {
"module_name": "node_oom_heapdump_native",
"module_path": "./build/Release",
"package_name": "{module_name}-v{version}-{platform}-{arch}-{libc}.tar.gz",
"host": "https://github.com/blueconic/node-oom-heapdump/releases/download/{version}"
},
"engines": {
Expand Down

0 comments on commit 6d7174b

Please sign in to comment.