From fda9e11fa0594382c6119f65840b036679b05086 Mon Sep 17 00:00:00 2001 From: lleyton Date: Wed, 22 Nov 2023 20:36:51 -0800 Subject: [PATCH] fix: build arm b raw base images using emulation --- .github/workflows/build-katsu.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-katsu.yml b/.github/workflows/build-katsu.yml index a82cd49c..8fae6cdd 100644 --- a/.github/workflows/build-katsu.yml +++ b/.github/workflows/build-katsu.yml @@ -54,15 +54,15 @@ jobs: variant: - base/base-disk #- flagship/flagship-chromebook - # runs on ubuntu-latest or arm64 if arch is aarch64 - runs-on: ${{ matrix.arch == 'x86_64' && 'ubuntu-latest' || 'arm64' }} + # TODO: figure out how to get loop devices to work on our ARM runners + runs-on: ubuntu-latest container: image: ghcr.io/terrapkg/builder:f38 # Pass /dev from host to container # Very hacky, but it works # Microsoft/Github, if you're reading this, # I'm sorry. - options: --privileged -v /dev:/dev --device-cgroup-rule "b 7:* rmw" + options: --privileged -v /dev:/dev steps: - name: Install dependencies @@ -70,6 +70,8 @@ jobs: dnf install -y $DNF_PKGS dnf clean all + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 - name: Clone Katsu uses: actions/checkout@v3 with: @@ -127,7 +129,7 @@ jobs: # Very hacky, but it works # Microsoft/Github, if you're reading this, # I'm sorry. - options: --privileged -v /dev:/dev --device-cgroup-rule "b 7:* rmw" + options: --privileged -v /dev:/dev steps: - name: Install dependencies