Skip to content

Commit e23cb82

Browse files
committed
setup qemu and arm build
1 parent 2806c78 commit e23cb82

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

.github/workflows/build_zip.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,13 @@ jobs:
4444
with:
4545
repository: learningequality/pi-gen
4646
ref: ${{ inputs.ref }}
47+
- name: Set up QEMU
48+
uses: docker/setup-qemu-action@v2
49+
- name: Download the debfile from URL and install
50+
if: ${{ inputs.deb-url }}
51+
run: |
52+
sudo apt-get update
53+
sudo apt-get install -y qemu-user-static
4754
- name: Download the debfile from URL and install
4855
if: ${{ inputs.deb-url }}
4956
run: make get-deb deb=${{ inputs.deb-url }}

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
2-
ARG BASE_IMAGE=debian:bullseye
3-
FROM ${BASE_IMAGE}
4-
ENV DEBIAN_FRONTEND noninteractive
1+
FROM i386/debian:bullseye
2+
ENV DEBIAN_FRONTEND=noninteractive
53

64
RUN apt-get -y update && \
75
apt-get -y install --no-install-recommends \
@@ -11,6 +9,8 @@ RUN apt-get -y update && \
119
binfmt-support ca-certificates fdisk gpg pigz arch-test \
1210
&& rm -rf /var/lib/apt/lists/*
1311

12+
COPY --from=multiarch/qemu-user-static:latest /usr/bin/qemu-arm-static /usr/bin/
13+
1414
COPY . /pi-gen/
1515

1616
VOLUME [ "/pi-gen/work", "/pi-gen/deploy"]

0 commit comments

Comments
 (0)