Skip to content

Commit

Permalink
add arm64 prebuilds for alpine (#714)
Browse files Browse the repository at this point in the history
* add arm64 prebuilds for alpine

* run arm64 build inside emulated arm64 docker container
  • Loading branch information
Chicken authored Nov 19, 2021
1 parent bd2a69e commit ac4d76a
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"

0 comments on commit ac4d76a

Please sign in to comment.