From bcfb2c6c035cd9c9913b03e3f44cf5d4e8cd9290 Mon Sep 17 00:00:00 2001 From: Kris Zyp Date: Thu, 21 Oct 2021 08:04:21 -0600 Subject: [PATCH] Try to prebuild across linux too --- .github/workflows/prebuild.yml | 28 ++++++++++++++++++++++++++++ package.json | 6 ++---- 2 files changed, 30 insertions(+), 4 deletions(-) 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" } }