Skip to content

Commit

Permalink
Support musl (#169)
Browse files Browse the repository at this point in the history
* Update git ignore file

* Support musl
  • Loading branch information
fanatid authored Jul 20, 2020
1 parent b6d21b9 commit 466cb57
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,13 @@ jobs:
run: yarn install --ignore-scripts

- name: Build addon
if: runner.os != 'Linux'
run: make build-addon

- name: Build addon
if: runner.os == 'Linux'
run: make build-addon-linux

- name: Get minimal Node.js version from package.json (Linux & macOS)
id: node-version-nix
if: runner.os != 'Windows'
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ prebuilds

npm-debug.log
package-lock.json
secp256k1-*.tgz
yarn-error.log
yarn.lock
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,16 @@


prebuildify = ./node_modules/.bin/prebuildify
prebuildify-cross = ./node_modules/.bin/prebuildify-cross

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

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


nyc = ./node_modules/.bin/nyc

Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
"node-gyp": "^5.0.7",
"nyc": "^15.0.0",
"prebuildify": "^3.0.4",
"prebuildify-cross": "github:prebuild/prebuildify-cross#v4.0.0",
"standard": "^14.3.1",
"tap-dot": "^2.0.0",
"tape": "^4.10.1",
Expand Down

0 comments on commit 466cb57

Please sign in to comment.