Skip to content

Commit

Permalink
Build arm for all docker versions
Browse files Browse the repository at this point in the history
  • Loading branch information
dapplion committed Feb 10, 2022
1 parent be6deca commit 8d41d3d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,10 @@ jobs:
build-arm:
needs: ["build-swig"]
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node: [10, 11, 12, 13, 14, 15, 16]
defaults:
run:
shell: bash
Expand All @@ -118,7 +122,7 @@ jobs:

- name: Build test arm binding
run: |
docker buildx build --platform linux/arm64 -t armbuild:latest --load --progress=plain .
docker buildx build --build-arg NODE_VERSION=${{matrix.node}} --platform linux/arm64 -t armbuild:latest --load --progress=plain .
docker create --name armbuild armbuild:latest
docker cp armbuild:/prebuild .
Expand Down
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# This is used to build bindings for arm64

FROM node:16
ARG NODE_VERSION
FROM node:${NODE_VERSION}

RUN apt install -y python3 g++ make
# && ln -sf python3 /usr/bin/python
Expand Down

0 comments on commit 8d41d3d

Please sign in to comment.