Skip to content

Commit

Permalink
[ci] Build and deploy a binary for Linux musl x64
Browse files Browse the repository at this point in the history
Fixes #111
  • Loading branch information
lpinca committed Jan 26, 2023
1 parent 2f0e494 commit fce8a91
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 6 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,17 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 14
node-version: 16
architecture: ${{ matrix.arch }}
- run: npm install
- run: npm run prebuild
if: matrix.os != 'macos-latest'
- run: npm run prebuild-darwin-x64+arm64
if: matrix.os == 'macos-latest'
- run: |
npm run prebuild
npm run prebuild-linux-musl-x64
if: matrix.os == 'ubuntu-18.04'
- run: npm run prebuild
if: matrix.os == 'windows-latest'
- uses: actions/upload-artifact@v3
with:
name: ${{ matrix.os }}
Expand Down
3 changes: 3 additions & 0 deletions binding.gyp
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{
'variables': {
'openssl_fips': ''
},
'targets': [
{
'target_name': 'validation',
Expand Down
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@
},
"scripts": {
"install": "node-gyp-build",
"prebuild": "prebuildify --napi --strip --target=14.0.0",
"prebuild-darwin-x64+arm64": "prebuildify --arch x64+arm64 --napi --strip --target=14.0.0",
"prebuild": "prebuildify --napi --strip --target=8.11.2",
"prebuild-linux-musl-x64": "prebuildify-cross --image alpine --napi --strip --target=8.11.2",
"prebuild-darwin-x64+arm64": "prebuildify --arch x64+arm64 --napi --strip --target=8.11.2",
"test": "mocha"
},
"files": [
Expand Down Expand Up @@ -41,6 +42,7 @@
"devDependencies": {
"mocha": "^10.0.0",
"node-gyp": "^9.1.0",
"prebuildify": "^5.0.0"
"prebuildify": "^5.0.0",
"prebuildify-cross": "^5.0.0"
}
}

0 comments on commit fce8a91

Please sign in to comment.