Skip to content

Commit

Permalink
Try to prebuild across linux too
Browse files Browse the repository at this point in the history
  • Loading branch information
kriszyp committed Oct 21, 2021
1 parent b647af9 commit bcfb2c6
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 4 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/prebuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,38 @@ jobs:
- run: npm test
- run: npm run prebuild
if: startsWith(github.ref, 'refs/tags/')
- run: npm run prebuild-arm64
if: startsWith(github.ref, 'refs/tags/')
- run: zip -r prebuild-darwin.zip prebuilds
if: startsWith(github.ref, 'refs/tags/')
- name: Prebuild
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: prebuild-darwin.zip
build-ubuntu:
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-18.04
container: quay.io/pypa/manylinux_2_24_x86_64
steps:
- run: apt-get update
- run: apt-get install -y gcc-aarch64-linux-gnu
- run: apt-get install -y g++-aarch64-linux-gnu
- run: ldd --version ldd
- uses: actions/checkout@v2
- name: Setup node
uses: actions/setup-node@v2
with:
node-version: 12
- run: npm install
- run: npm run prebuild-arm64
env:
CC: aarch64-linux-gnu-gcc
CXX: aarch64-linux-gnu-g++
- run: npm run prebuild
- run: tar --create --verbose --file=prebuild-linux.tar -C prebuilds .
- name: Prebuild
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: prebuild-linux.tar
6 changes: 2 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,8 @@
},
"scripts": {
"install": "node-gyp-build",
"prebuild": "run-script-os",
"prebuild:darwin": "prebuildify --arch=arm64 --target 17.0.1 && prebuildify --arch=arm64 --target 16.9.0 && prebuildify --arch=arm64 --target 14.17.6 && prebuildify --target 17.0.1 && prebuildify --target 16.9.0 && prebuildify --target 14.17.6 && prebuildify --target 12.18.0",
"prebuild:default": "prebuildify --target 17.0.1 && prebuildify --target 16.9.0 && prebuildify --target 14.17.6 && prebuildify --target 12.18.0",
"prebuild": "prebuildify --target 17.0.1 && prebuildify --target 16.9.0 && prebuildify --target 14.17.6 && prebuildify --target 12.18.0",
"prebuild-arm64": "prebuildify --arch=arm64 --target 17.0.1 && prebuildify --arch=arm64 --target 16.9.0 && prebuildify --arch=arm64 --target 14.17.6",
"before-publish": "prebuildify-ci download && prebuildify --target 17.0.1 && prebuildify --target 16.9.0 && prebuildify --target 14.17.6 && prebuildify --target 12.18.0 && prebuildify --target [email protected]",
"recompile": "node-gyp clean && node-gyp configure && node-gyp build -d",
"test": "mocha test/**.test.js --recursive && npm run test:types",
Expand Down Expand Up @@ -57,7 +56,6 @@
"prebuildify": "kriszyp/prebuildify#b78c5a9",
"prebuildify-ci": "^1.0.5",
"rimraf": "^3.0.2",
"run-script-os": "^1.1.6",
"tsd": "^0.14.0"
}
}

0 comments on commit bcfb2c6

Please sign in to comment.