Skip to content
Merged
Show file tree
Hide file tree
Changes from 24 commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
f9cfc1c
builder: build for the host architecture instead of hardcoding x86_64
oceanapplications Aug 24, 2026
795c3b0
configs: filter x86-only repositories out of the pacman config on aar…
oceanapplications Aug 24, 2026
19281f0
boot: make the live ISO bootable on aarch64
oceanapplications Aug 24, 2026
91dbf61
installer: fix the phases that assume an x86 target
oceanapplications Aug 24, 2026
e687c36
configs: add an aarch64 package list for the live environment
oceanapplications Aug 24, 2026
a6415af
boot: fail the build when the live initramfs is not produced
oceanapplications Aug 24, 2026
c391885
boot: document what customize_airootfs.sh is actually responsible for
oceanapplications Aug 24, 2026
5171b65
builder: filter GRUB modules not built for the target platform
oceanapplications Aug 25, 2026
21aa8f3
builder: define _filter_grubmodules in the carried archiso patch
oceanapplications Aug 26, 2026
2766ac6
installer: keep the distribution's mirrorlist on aarch64
oceanapplications Aug 26, 2026
8340b6b
builder: enumerate offline mirror packages before repo-add
oceanapplications Aug 26, 2026
c9c705a
Build the aarch64 ISO from an Arch Linux ARM image with a local [omar…
JimmayVV Aug 25, 2026
c917d4e
Add the aarch64 ISO workflow on GitHub arm64 runners
JimmayVV Aug 25, 2026
052152c
Chainload a live UKI carrying the Windows-on-ARM device trees on arm64
JimmayVV Aug 25, 2026
178a7b0
Kernel parameters and Qualcomm firmware the live ISO needs on Snapdra…
JimmayVV Aug 25, 2026
0c81c10
Install the pkgbase shim and the Adreno Vulkan driver on aarch64 targets
JimmayVV Aug 26, 2026
2d89268
Stage the Qualcomm firmware from Windows before the disk is written
JimmayVV Aug 26, 2026
dfedc49
Make the carried archiso patch whitespace-clean
birkskyum Aug 27, 2026
8eefea4
Point the ARM ISO at the upstream repository builder
birkskyum Aug 27, 2026
7d79158
Actually include the live UKI in aarch64 ISOs
birkskyum Aug 27, 2026
67539f3
Remove x86 microcode from the aarch64 profile
birkskyum Aug 27, 2026
14f17c1
Build the ALARM kernel image shim for the ISO
birkskyum Aug 27, 2026
b2fa0ac
Keep the ALARM keyring in the offline ISO mirror
birkskyum Aug 28, 2026
1734848
Trim aarch64 installer comments
birkskyum Aug 28, 2026
a675f33
Fail ARM ISO builds when the live initramfs is incomplete
birkskyum Sep 5, 2026
165de8e
Make ARM bootstrap and staged firmware handoff retry-safe
birkskyum Sep 5, 2026
a380b01
Use the canonical ARM repository workflow
birkskyum Sep 5, 2026
3b1b66a
Keep carried archiso patches concise and whitespace-clean
birkskyum Sep 5, 2026
fcc4d92
Share architecture filtering for ISO package lists
birkskyum Sep 6, 2026
dc166d7
Fix ARM ISO failures found in native live-media build
birkskyum Sep 6, 2026
e62f150
Read keyboard layouts from the installed target
maralcbr Sep 3, 2026
0d887de
Consolidate ARM media targets and hardware profiles
birkskyum Sep 10, 2026
50951ca
Merge quattro and retain the Broadcom package rename
birkskyum Sep 10, 2026
4d47dd6
Start live Yoga DSP only after the root is in RAM
birkskyum Sep 10, 2026
f67b090
Document the automatic Yoga live DSP boot test
birkskyum Sep 10, 2026
4a6149a
Keep ARM usage instructions in the README
birkskyum Sep 10, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
102 changes: 102 additions & 0 deletions .github/workflows/aarch64-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
name: aarch64 ISO Build

# Build the aarch64 package repository and ISO on a native ARM runner.

on:
workflow_dispatch:
inputs:
pkgs_ref:
description: "omarchy-pkgs branch, tag or SHA to build the [omarchy] repo from"
type: string
default: master
iso_make_args:
description: "Extra bin/omarchy-iso-make arguments (e.g. --edge)"
type: string
default: ""

jobs:
packages:
uses: omacom-io/omarchy-pkgs/.github/workflows/build-aarch64.yml@master
with:
pkgs_repository: omacom-io/omarchy-pkgs
pkgs_ref: ${{ inputs.pkgs_ref || 'master' }}
# Packages installed from the local aarch64 Omarchy repository.
packages: >-
omarchy-keyring ttf-jetbrains-mono-nerd-basic limine-mkinitcpio-hook limine-snapper-sync
linux-aarch64-pkgbase-shim qcom-firmware-extract omarchy-settings omarchy omarchy-nvim
aether cliamp herdr localsend-bin mise-bin omacalc omacut omawrite omarchy-chromium-bin
ttfx yay tobi-try ttf-ia-writer ufw-docker xdg-terminal-exec yaru-icon-theme
tzupdate tensaku hyprland-preview-share-picker

build-iso:
needs: packages
runs-on: ubuntu-24.04-arm
timeout-minutes: 330
env:
ISO_MAKE_ARGS: ${{ inputs.iso_make_args }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: true

- name: Runner facts
run: |
set -x
uname -a
nproc
free -h
df -h
docker version --format '{{.Server.Version}}'
docker info --format '{{.Driver}} {{.DockerRootDir}}'

# The hosted runner's root disk is too small for both build stages.
- name: Free Disk Space
uses: jlumbroso/free-disk-space@v1.3.1
continue-on-error: true

- name: Disk after cleanup
run: df -h

- name: Download the aarch64 [omarchy] repository
uses: actions/download-artifact@v4
with:
name: ${{ needs.packages.outputs.artifact }}
path: omarchy-repo

- name: Inspect the repository
run: |
test -f omarchy-repo/omarchy.db
ls -la omarchy-repo | head -50
du -sh omarchy-repo

- name: Build ISO
run: |
re='^[A-Za-z0-9 ._=/-]*$'
[[ $ISO_MAKE_ARGS =~ $re ]] || { echo "invalid iso_make_args" >&2; exit 1; }
start=$(date +%s)
NO_BOOT_OFFER=1 ./bin/omarchy-iso-make --keep-pkg-cache --local-repo "$PWD/omarchy-repo" $ISO_MAKE_ARGS
echo "ISO build wall-clock: $(( $(date +%s) - start ))s"

- name: Inspect ISO
run: |
sudo apt-get install -y -qq xorriso >/dev/null
ls -l release/
for iso in release/*.iso; do
echo "== $iso"
sha256sum "$iso"
xorriso -indev "$iso" -ls /EFI/BOOT/ 2>/dev/null
xorriso -indev "$iso" -lsl /arch/boot/aarch64/ 2>/dev/null
# The default Snapdragon boot target must carry its device trees.
xorriso -indev "$iso" -ls /arch/boot/aarch64/omarchy-live.efi 2>/dev/null \
|| { echo "ISO is missing the DTB-carrying live UKI" >&2; exit 1; }
done
df -h

- name: Upload newly built ISO artifact
uses: actions/upload-artifact@v4
with:
name: omarchy-iso-aarch64-${{ github.run_number }}
path: ./release/*.iso
if-no-files-found: error
retention-days: 3
29 changes: 27 additions & 2 deletions bin/omarchy-iso-make
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,17 @@ NO_CACHE=""
KEEP_PKG_CACHE=""
LOCAL_OMARCHY_PATH=""
LOCAL_PKGS_PATH=""
LOCAL_REPO_PATH=""
while [[ $# -gt 0 ]]; do
case $1 in
--local-repo)
LOCAL_REPO_PATH="${2:-}"
if [[ -z $LOCAL_REPO_PATH ]]; then
echo "Error: --local-repo requires a directory holding a built [omarchy] repo (omarchy.db + packages)" >&2
exit 1
fi
shift 2
;;
--no-cache)
NO_CACHE=1
shift
Expand Down Expand Up @@ -57,7 +66,7 @@ while [[ $# -gt 0 ]]; do
;;
*)
echo "Unknown option: $1"
echo "Usage: $0 [--no-cache] [--keep-pkg-cache] [--no-boot-offer] [--debug] [--edge] [--dev|--rc] [--local-source <omarchy-checkout> <pkgs-checkout>]"
echo "Usage: $0 [--no-cache] [--keep-pkg-cache] [--no-boot-offer] [--debug] [--edge] [--dev|--rc] [--local-source <omarchy-checkout> <pkgs-checkout>] [--local-repo <repo-dir>]"
exit 1
;;
esac
Expand All @@ -70,6 +79,11 @@ if [[ -n $LOCAL_OMARCHY_PATH ]]; then
LOCAL_PKGS_PATH=$(realpath "$LOCAL_PKGS_PATH")
fi

if [[ -n $LOCAL_REPO_PATH ]]; then
[[ -f $LOCAL_REPO_PATH/omarchy.db ]] || { echo "Error: no omarchy.db in $LOCAL_REPO_PATH (build one with omarchy-pkgs: bin/repo build + bin/repo update)" >&2; exit 1; }
LOCAL_REPO_PATH=$(realpath "$LOCAL_REPO_PATH")
fi

lint_file_permissions() {
local profiledef="configs/profiledef.sh"
local -A declared=()
Expand Down Expand Up @@ -142,6 +156,11 @@ if [[ -n $LOCAL_OMARCHY_PATH ]]; then
)
fi

# Mount a locally built Omarchy package repository when requested.
if [[ -n $LOCAL_REPO_PATH ]]; then
DOCKER_ARGS+=(-v "$LOCAL_REPO_PATH:/omarchy-repo:ro")
fi

if [[ -d /var/cache/pacman/pkg ]]; then
DOCKER_ARGS+=(-v "/var/cache/pacman/pkg:/var/cache/pacman/pkg")
fi
Expand All @@ -166,7 +185,13 @@ if ! docker version &>/dev/null; then
DOCKER=(sudo docker)
fi

"${DOCKER[@]}" run "${DOCKER_ARGS[@]}" archlinux/archlinux:latest /$BUILD_SCRIPT
# Select a build image for the host architecture.
case "$(uname -m)" in
aarch64) BUILD_IMAGE=menci/archlinuxarm:base-devel ;;
*) BUILD_IMAGE=archlinux/archlinux:latest ;;
esac

"${DOCKER[@]}" run "${DOCKER_ARGS[@]}" "$BUILD_IMAGE" /$BUILD_SCRIPT

latest_iso=$(\ls -t "$BUILD_RELEASE_PATH"/*.iso | head -n1)
iso_ref="${latest_iso%.*}-$OMARCHY_ISO_REF.iso"
Expand Down
Loading