Skip to content

Commit 466cb57

Browse files
authored
Support musl (#169)
* Update git ignore file * Support musl
1 parent b6d21b9 commit 466cb57

4 files changed

Lines changed: 11 additions & 0 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,13 @@ jobs:
2525
run: yarn install --ignore-scripts
2626

2727
- name: Build addon
28+
if: runner.os != 'Linux'
2829
run: make build-addon
2930

31+
- name: Build addon
32+
if: runner.os == 'Linux'
33+
run: make build-addon-linux
34+
3035
- name: Get minimal Node.js version from package.json (Linux & macOS)
3136
id: node-version-nix
3237
if: runner.os != 'Windows'

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@ prebuilds
66

77
npm-debug.log
88
package-lock.json
9+
secp256k1-*.tgz
910
yarn-error.log
1011
yarn.lock

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,16 @@
44

55

66
prebuildify = ./node_modules/.bin/prebuildify
7+
prebuildify-cross = ./node_modules/.bin/prebuildify-cross
78

89
# hack, otherwise GitHub Actions for Windows:
910
# '.' is not recognized as an internal or external command, operable program or batch file.
1011
build-addon:
1112
$(prebuildify) --target node@10.0.0 --napi --strip && node -p "process.platform"
1213

14+
build-addon-linux:
15+
$(prebuildify-cross) -i centos7-devtoolset7 -i alpine --target node@10.0.0 --napi --strip
16+
1317

1418
nyc = ./node_modules/.bin/nyc
1519

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
"node-gyp": "^5.0.7",
4141
"nyc": "^15.0.0",
4242
"prebuildify": "^3.0.4",
43+
"prebuildify-cross": "github:prebuild/prebuildify-cross#v4.0.0",
4344
"standard": "^14.3.1",
4445
"tap-dot": "^2.0.0",
4546
"tape": "^4.10.1",

0 commit comments

Comments
 (0)