File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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'
Original file line number Diff line number Diff line change @@ -6,5 +6,6 @@ prebuilds
66
77npm-debug.log
88package-lock.json
9+ secp256k1- * .tgz
910yarn-error.log
1011yarn.lock
Original file line number Diff line number Diff line change 44
55
66prebuildify = ./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.
1011build-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
1418nyc = ./node_modules/.bin/nyc
1519
Original file line number Diff line number Diff line change 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" ,
You can’t perform that action at this time.
0 commit comments