diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4ebcdb235..95bb8ac88 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -82,3 +82,16 @@ jobs: - run: apk add build-base git python3 --update-cache - run: npm install --ignore-scripts - run: npx --no-install prebuild -r node -t 10.20.0 -t 12.0.0 -t 14.0.0 -t 16.0.0 --include-regex 'better_sqlite3.node$' -u ${{ secrets.GITHUB_TOKEN }} + + prebuild-arm64-alpine: + name: Prebuild on arm64 alpine + runs-on: ubuntu-latest + needs: publish + steps: + - uses: docker/setup-qemu-action@v1 + - run: | + docker run --rm --entrypoint /bin/sh --platform linux/arm64 node:16-alpine -c "apk add build-base git python3 --update-cache && \ + git clone https://github.com/JoshuaWise/better-sqlite3 && \ + cd better-sqlite3 && \ + npm install --ignore-scripts && \ + npx --no-install prebuild -r node -t 10.20.0 -t 12.0.0 -t 14.0.0 -t 16.0.0 --include-regex 'better_sqlite3.node$' -u ${{ secrets.GITHUB_TOKEN }}"