Skip to content

Commit

Permalink
github: workflows: nemos-images: add qemu-arm64 build action
Browse files Browse the repository at this point in the history
This makes use of the arm-runner-action to create an arm64 VM.

Signed-off-by: Isaac True <isaac.true@canonical.com>
  • Loading branch information
IsaacJT committed Aug 2, 2023
1 parent 0671970 commit a5382e4
Showing 1 changed file with 29 additions and 1 deletion.
30 changes: 29 additions & 1 deletion .github/workflows/nemos-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,37 @@ jobs:
with:
name: "nemos-image-${{ matrix.config }}-${{ matrix.series }}"
path: "nemos-image-${{ matrix.config }}-${{ matrix.series }}.qcow2"
qemu-arm64:
runs-on: "ubuntu-latest"
strategy:
matrix:
series:
- lunar
config:
- minimal
- reference
steps:
- name: "Checkout"
uses: "actions/checkout@v3"
- uses: pguyot/arm-runner-action@v2
with:
base_image: https://cdimage.ubuntu.com/ubuntu-server/jammy/daily-preinstalled/current/jammy-preinstalled-server-arm64+raspi.img.xz
cpu: cortex-a53
commands: |
sudo apt install -y software-properties-common
sudo add-apt-repository -y ppa:nemos-team/kiwi
sudo DEBIAN_FRONTEND="noninteractive" \
apt install -y kiwi kiwi-systemdeps
sudo kiwi-ng --debug --profile bootstrapped \
--config nemos-images-${{ matrix.config }}-${{ matrix.series }}/kiwi.yaml \
system build --target-dir build \
--description nemos-images-${{ matrix.config }}-${{ matrix.series }}/qemu-arm64/
spread:
runs-on: "ubuntu-latest"
needs: "qemu-amd64"
needs:
- "qemu-amd64"
- "qemu-arm64"
steps:
- uses: "actions/checkout@v3"
- name: "Update system packages"
Expand Down

0 comments on commit a5382e4

Please sign in to comment.