Skip to content
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
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 [email protected] --napi --strip && node -p "process.platform"

build-addon-linux:
$(prebuildify-cross) -i centos7-devtoolset7 -i alpine --target [email protected] --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