diff --git a/.github/workflows/prebuild.yml b/.github/workflows/prebuild.yml index e1a19e5314..217c91184f 100644 --- a/.github/workflows/prebuild.yml +++ b/.github/workflows/prebuild.yml @@ -13,6 +13,8 @@ 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 @@ -20,3 +22,29 @@ jobs: 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 diff --git a/package.json b/package.json index 7ebba13079..5377df9941 100644 --- a/package.json +++ b/package.json @@ -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 electron@13.1.4", "recompile": "node-gyp clean && node-gyp configure && node-gyp build -d", "test": "mocha test/**.test.js --recursive && npm run test:types", @@ -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" } }