Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build binaries for Alpine #16

Merged
merged 1 commit into from
Jun 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 24 additions & 2 deletions .github/workflows/publish-native-assets-to-github-releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,12 @@ jobs:
- name: Add msbuild to PATH
if: matrix.os == 'windows-latest'
uses: microsoft/setup-msbuild@v1.1
- name: patch node gyp on windows to support Visual Studio 2019
- name: Install node-gyp
if: matrix.os == 'windows-latest'
shell: powershell
run: |
npm install --global npm@latest
npm install --global node-gyp@latest
npm prefix -g | % {npm config set node_gyp "$_\node_modules\node-gyp\bin\node-gyp.js"}
orgads marked this conversation as resolved.
Show resolved Hide resolved
- name: build using node-pre-gyp
run: |
npm install --build-from-source
Expand All @@ -40,3 +39,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: [18, 20, 22]
container: node:${{ matrix.node-version }}-alpine3.20
steps:
- uses: actions/checkout@v2
- name: install build deps
run: |
apk add g++ make python3
- 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