Skip to content

Commit

Permalink
Bump QEMU to 8.2 for FreeBSD 14.0 ARM64
Browse files Browse the repository at this point in the history
For some reason we need at least QEU 8.2 for 14.0 ARM64 to properly
build. Latest version of Ubuntu doesn't have QEMU 8.2, we need to
switch to Alpine Edge to get at least 8.2.
  • Loading branch information
jacob-carlborg committed Feb 15, 2024
1 parent 8978925 commit 0ccc282
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
17 changes: 7 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
build:
name: ${{ matrix.version }} ${{ matrix.architecture.name }}
runs-on: ubuntu-latest
container: ubuntu:22.04
container: alpine:edge
strategy:
fail-fast: false
matrix:
Expand All @@ -25,7 +25,7 @@ jobs:

architecture:
- name: x86-64
qemu: x86
qemu: x86_64

- name: arm64
qemu: aarch64
Expand All @@ -46,7 +46,7 @@ jobs:
- version: '12.4'
architecture:
name: x86-64
qemu: x86
qemu: x86_64

steps:
- name: Clone Repository
Expand All @@ -56,9 +56,10 @@ jobs:

- name: Install Dependencies
run: |
apt update && \
apt install curl jq unzip \
"qemu-system-${{ matrix.architecture.qemu }}" -y
apk add --no-cache \
curl \
qemu-img \
"qemu-system-${{ matrix.architecture.qemu }}"
- uses: hashicorp/setup-packer@main
with:
Expand All @@ -69,10 +70,6 @@ jobs:
# with:
# limit-access-to-actor: true

- name: Install UEFI
if: matrix.architecture.name == 'arm64'
run: cp "$(cat /usr/share/qemu/firmware/60-edk2-aarch64.json | jq .mapping.executable.filename -r)" edk2-aarch64-code.fd

- name: Build Image
if: '!matrix.copy_from_previous_release'
env:
Expand Down
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env sh

set -euxo pipefail

Expand Down

0 comments on commit 0ccc282

Please sign in to comment.