Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
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
23 changes: 12 additions & 11 deletions .github/workflows/install-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,21 @@ on:
# By hand, the ISO can be built from another package channel: rc builds a
# release candidate the way omarchy-release does (omarchy-iso-make --rc), to
# test a fresh install of it, on both architectures, and stable the release
# the same way. A pull request builds x86_64 from stable and aarch64 from
# edge.
# the same way. A pull request or a merge builds both from edge: this branch
# is built against omarchy's quattro, which the edge packages track.
workflow_dispatch:
inputs:
channel:
description: "Package channel the ISO is built from (a pull request: stable on x86_64, edge on aarch64)"
description: "Package channel the ISO is built from (a pull request or merge: edge)"
type: choice
options: [stable, rc, edge]
default: stable
default: edge

permissions:
contents: read

concurrency:
group: install-test-${{ github.event.pull_request.number || github.ref }}-${{ inputs.channel || 'stable' }}
group: install-test-${{ github.event.pull_request.number || github.ref }}-${{ inputs.channel || 'edge' }}
cancel-in-progress: true

jobs:
Expand Down Expand Up @@ -110,13 +110,14 @@ jobs:
- uses: docker/setup-buildx-action@f87e5991a6d7451dcb8d9637bfbc97413f497069 # v4.4.1
if: env.ARCH == 'x86_64'

# A pull request's aarch64 ISO installs what the edge channel serves, as
# the nightly does, on linux-omarchy: the one kernel for every aarch64
# board. A run by hand builds both from the channel it names. Every
# package comes from the package repositories, none is built here.
# A pull request's or merge's ISO installs what the edge channel serves,
# built from omarchy's quattro, as the nightly does; on aarch64 that runs
# linux-omarchy, the one kernel for every aarch64 board. A run by hand
# builds both from the channel it names. Every package comes from the
# package repositories, none is built here.
- name: Build the ISO
env:
CHANNEL: ${{ inputs.channel || (env.ARCH == 'aarch64' && 'edge' || 'stable') }}
CHANNEL: ${{ inputs.channel || 'edge' }}
run: |
start=$(date +%s)
case $CHANNEL in
Expand Down Expand Up @@ -388,7 +389,7 @@ jobs:
{
echo "## Install test: x86_64, ${{ matrix.variant }}"
echo
echo "Channel: \`${{ inputs.channel || 'stable' }}\`"
echo "Channel: \`${{ inputs.channel || 'edge' }}\`"
Comment thread
greptile-apps[bot] marked this conversation as resolved.
Resolved
echo
if [ -f "$base/omarchy-install-timing.json" ]; then
jq -r '"**Install:** \((.finished_at - .started_at) * 10 | round / 10) s across \(.phases | length) phases"' "$base/omarchy-install-timing.json"
Expand Down
22 changes: 22 additions & 0 deletions builder/build-iso.sh
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,7 @@ sed -i -E '/^(linux|broadcom-wl)$/d' "$live_packages_file"
if [[ -d /omarchy-source ]]; then
base_pkg_lists=(/omarchy-source/install/omarchy-base.packages /omarchy-source/install/omarchy-other.packages)
setup_form=/omarchy-source/install/provisioning/setup-form.sh
progress_icon=/omarchy-source/install/provisioning/progress-icon.sh
mise_work=/omarchy-source/install/user/mise-work.sh
else
# Pull the same package lists out of the freshly-downloaded Omarchy runtime
Expand All @@ -407,6 +408,8 @@ else
# actionable error below.
bsdtar -xf "$omarchy_pkg" -C /tmp/omarchy-pkglists usr/share/omarchy/install/provisioning/setup-form.sh 2>/dev/null || true
setup_form=/tmp/omarchy-pkglists/usr/share/omarchy/install/provisioning/setup-form.sh
bsdtar -xf "$omarchy_pkg" -C /tmp/omarchy-pkglists usr/share/omarchy/install/provisioning/progress-icon.sh 2>/dev/null || true
progress_icon=/tmp/omarchy-pkglists/usr/share/omarchy/install/provisioning/progress-icon.sh
bsdtar -xf "$omarchy_pkg" -C /tmp/omarchy-pkglists usr/share/omarchy/install/user/mise-work.sh 2>/dev/null || true
mise_work=/tmp/omarchy-pkglists/usr/share/omarchy/install/user/mise-work.sh
# The aarch64 list, each platform's own and the x86_64-only one. Runtimes
Expand Down Expand Up @@ -532,6 +535,25 @@ if [[ ! -f $setup_form ]]; then
fi
cp "$setup_form" "$build_cache_dir/airootfs/usr/share/omarchy-iso/setup-form.sh"

# The install progress screen comes from the same runtime, so the install and
# the first-boot setup that finishes a deferred install draw the same screen. A
# runtime predating the split ships no such file, which would leave the install
# dashboard with nothing to draw.
if [[ ! -f $progress_icon ]]; then
if [[ -d /omarchy-source ]]; then
echo "ERROR: the --local-source checkout ships no install/provisioning/progress-icon.sh" >&2
remedy="Update the checkout to a revision carrying the shared progress screen."
else
echo "ERROR: $OMARCHY_RUNTIME_PACKAGE does not ship install/provisioning/progress-icon.sh" >&2
remedy="Publish a runtime carrying the shared progress screen, or build with --local-source against a checkout that has it."
fi
echo " The install dashboard draws its progress with that file, so this ISO" >&2
echo " would boot into an installer that cannot show the install." >&2
echo " $remedy" >&2
exit 1
fi
cp "$progress_icon" "$build_cache_dir/airootfs/usr/share/omarchy-iso/progress-icon.sh"

# Omarchy installs Node lazily through mise since omacom/omarchy#15876. A
# runtime from before it unpacks a bundled Node tarball during setup and stops
# the install without one, so it still gets the build for its architecture.
Expand Down
Loading
Loading