forked from containers/bubblewrap
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
559a725
commit 50cc82d
Showing
1 changed file
with
10 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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/[email protected] | ||
with: | ||
name: bwrap | ||
|