Bookworm became oldstable in July 2026 (standard support ended 2026-07-11). A new distro should be built on the current stable, which is now Trixie (13.6): newer kernel (6.12 LTS vs 6.1, whose LTS ends Dec 2026), newer systemd/containers/toolchains, KDE 6 for the workstation edition, and a year of stability behind it (full support until 2028-08-09). - versions.mk / common.sh: DEBIAN_SUITE bookworm -> trixie, kernel 6.1 -> 6.12 - package list header comments: bookworm -> trixie - GitLab CI: debian:bookworm -> debian:trixie build images - docs (architecture, building): base references updated All packages used across the three editions exist in Trixie unchanged.
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 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'
|