Skip to content

Commit

Permalink
fix: build arm b raw base images using emulation
Browse files Browse the repository at this point in the history
  • Loading branch information
lleyton authored Nov 23, 2023
1 parent a330ade commit fda9e11
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/build-katsu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,22 +54,24 @@ 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
run: |
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:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit fda9e11

Please sign in to comment.