BOOT=efi only changed the GRUB inside the rootfs squashfs — grub-mkrescue
builds the ISO bootloader from the build host's GRUB, so an ISO assembled
on a host without the x86_64-efi modules + mtools shipped with NO UEFI
boot entry. Booting that ISO on a UEFI machine showed:
"make sure there is a bootable uefi x64 image"
- check-host-deps.sh now verifies the GRUB module dirs it needs for a
hybrid ISO (/usr/lib/grub/x86_64-efi from grub-efi-amd64-bin,
/usr/lib/grub/i386-pc from grub-pc-bin) and mtools, not just
grub-mkrescue.
- build-iso.sh verifies the finished ISO has both EFI and BIOS boot
entries (xorriso El Torito report) and prints the result; BOOT=efi
builds FAIL if the EFI entry is missing.
- GitLab CI build image gains grub-pc-bin, grub-efi-amd64-bin, mtools.
- docs/building.md: hybrid-ISO burning instructions (dd) and the
"bootable uefi x64 image" troubleshooting path.
101 lines
3.5 KiB
YAML
101 lines
3.5 KiB
YAML
# ─────────────────────────────────────────────────────────────────────────────
|
|
# Arcline OS — GitLab CI pipeline
|
|
#
|
|
# Mirrors the local build flow (scripts/ + Makefile) in CI:
|
|
# validate → build (matrix over editions) → test → publish
|
|
#
|
|
# The build image is Debian trixie with the host deps installed, matching
|
|
# what scripts/check-host-deps.sh expects locally.
|
|
# ─────────────────────────────────────────────────────────────────────────────
|
|
stages:
|
|
- validate
|
|
- build
|
|
- test
|
|
- publish
|
|
|
|
variables:
|
|
DEBIAN_FRONTEND: noninteractive
|
|
VERSION: "0.1.0"
|
|
|
|
# ── validate ────────────────────────────────────────────────────────────────
|
|
validate:
|
|
stage: validate
|
|
image: debian:trixie
|
|
script:
|
|
- apt-get update -qq && apt-get install -y -qq make bash
|
|
- make check
|
|
|
|
# ── build (one job per edition) ─────────────────────────────────────────────
|
|
.build:
|
|
stage: build
|
|
image: debian:trixie
|
|
before_script:
|
|
- apt-get update -qq
|
|
- apt-get install -y -qq debootstrap squashfs-tools grub2-common grub-pc-bin grub-efi-amd64-bin mtools xorriso cpio curl git make bash gdisk parted rsync dosfstools qemu-utils unzip dpkg openssl sbsigntool
|
|
script:
|
|
- make ${TARGET:-iso}-${EDITION}
|
|
artifacts:
|
|
name: "arcline-${EDITION}-${VERSION}"
|
|
paths:
|
|
- build/artifacts/
|
|
expire_in: 2 weeks
|
|
rules:
|
|
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
|
|
when: never
|
|
- when: always
|
|
|
|
build-server:
|
|
extends: .build
|
|
variables:
|
|
EDITION: server
|
|
|
|
build-workstation:
|
|
extends: .build
|
|
variables:
|
|
EDITION: workstation
|
|
|
|
build-cloud:
|
|
extends: .build
|
|
variables:
|
|
EDITION: cloud
|
|
TARGET: image # cloud edition ships as a qcow2 disk image
|
|
|
|
# ── test ────────────────────────────────────────────────────────────────────
|
|
test:
|
|
stage: test
|
|
image: debian:trixie
|
|
needs: [build-server, build-workstation, build-cloud]
|
|
before_script:
|
|
- apt-get update -qq && apt-get install -y -qq bash make xz-utils
|
|
script:
|
|
# extract the rootfs artifacts so the smoke tests can inspect them
|
|
- for f in build/artifacts/arcline-*.tar.xz; do
|
|
[ -e "$f" ] || continue;
|
|
e=$(basename "$f" | sed -E 's/arcline-([a-z]+)-.*/\1/');
|
|
mkdir -p "build/rootfs/$e";
|
|
tar -xJf "$f" -C "build/rootfs/$e";
|
|
done
|
|
- make test
|
|
artifacts:
|
|
reports:
|
|
junit: build/logs/*.xml
|
|
when: always
|
|
|
|
# ── publish (tagged releases only) ──────────────────────────────────────────
|
|
publish:
|
|
stage: publish
|
|
image: alpine:latest
|
|
needs: [test]
|
|
before_script:
|
|
- apk add --no-cache curl jq
|
|
script:
|
|
- echo "Publishing release $VERSION (edit this step to push to your release server / GitLab Packages)"
|
|
- ls -la build/artifacts/ || true
|
|
artifacts:
|
|
name: "arcline-${VERSION}"
|
|
paths:
|
|
- build/artifacts/
|
|
expire_in: 1 year
|
|
rules:
|
|
- if: '$CI_COMMIT_TAG'
|