From a2f1f13123130e3d636ac73bfadeb2c28ed275f8 Mon Sep 17 00:00:00 2001 From: Gerald Pinder Date: Mon, 3 Jun 2024 23:49:33 -0400 Subject: [PATCH] chore: Install qemu-user-static --- .github/workflows/build-pr.yml | 22 +++++----------------- .github/workflows/build.yml | 6 +++++- 2 files changed, 10 insertions(+), 18 deletions(-) diff --git a/.github/workflows/build-pr.yml b/.github/workflows/build-pr.yml index 835b644..86fe479 100644 --- a/.github/workflows/build-pr.yml +++ b/.github/workflows/build-pr.yml @@ -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 diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c42ed17..705f804 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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