Skip to content

Commit

Permalink
chore: Install qemu-user-static
Browse files Browse the repository at this point in the history
  • Loading branch information
gmpinder committed Jun 4, 2024
1 parent 99e5dc7 commit a2f1f13
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 18 deletions.
22 changes: 5 additions & 17 deletions .github/workflows/build-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,29 +12,17 @@ jobs:
runs-on: ubuntu-latest

steps:
# There is a bug selecting a satellite in version 0.8
# so we use 0.7 to login and connect to the satellite
# before switching to the latest version
- uses: earthly/actions-setup@v1
with:
version: v0.7.23

- name: Earthly login
run: |
earthly account login --token ${{ secrets.EARTHLY_SAT_TOKEN }} >> /dev/null
earthly org s blue-build
earthly sat s earthly-lib
- uses: earthly/actions-setup@v1

with:
version: v0.8.2

- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.ref }}

- name: Run build
run: earthly --ci -P +all
run: |
sudo apt-get update
sudo apt-get install qemu-system binfmt-support qemu-user-static
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
earthly --ci -P +all
6 changes: 5 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,8 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}

- name: Run build
run: earthly --push --ci -P +all
run: |
sudo apt-get update
sudo apt-get install qemu-system binfmt-support qemu-user-static
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
earthly --push --ci -P +all

0 comments on commit a2f1f13

Please sign in to comment.