Skip to content

Commit

Permalink
Add arm64 support (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
hwittenborn committed Oct 1, 2023
1 parent 559a725 commit 50cc82d
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,24 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2

- name: Compile and extract the artifact from docker container
- name: Set up QEMU
uses: docker/setup-qemu-action@v2

- name: Compile and extract artifacts from docker container
run: |
mkdir -p dist
docker build -t alpine:bwrap .
docker run --rm -v $(pwd):/workdir alpine:bwrap cp /bubblewrap/build/bwrap /workdir/dist/bwrap
for arch in x86_64 aarch64; do
docker build --platform "${arch}" -t alpine:bwrap .
docker run --rm --platform "${arch}" -v $(pwd):/workdir alpine:bwrap cp /bubblewrap/build/bwrap "/workdir/dist/bwrap-${arch}"
done
- name: Set permissions for dist directory
run: |
sudo chown -R "$(id -u)":"$(id -g)" dist/
sudo chmod -R 766 dist/
- name: Upload artifact to release
- name: Upload artifacts to release
uses: actions/upload-artifact@v1.0.0
with:
name: bwrap
Expand Down

0 comments on commit 50cc82d

Please sign in to comment.