2026-04-14 18:13:15 +02:00
|
|
|
name: Build ISO
|
|
|
|
|
|
|
|
|
|
# Full ISO build is ~15-20 min. Only run on push-to-main and manual
|
|
|
|
|
# dispatch so feature-branch iteration stays fast. See
|
|
|
|
|
# memory/project_ci_branching for the rationale.
|
|
|
|
|
on:
|
|
|
|
|
push:
|
|
|
|
|
branches: [main]
|
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
|
|
concurrency:
|
|
|
|
|
group: build-iso-${{ github.ref }}
|
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
build-iso:
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
timeout-minutes: 30
|
2026-04-14 18:45:32 +02:00
|
|
|
# The runner is configured for docker-outside-of-docker: it mounts the
|
|
|
|
|
# host's /var/run/docker.sock. Jobs get the same socket so the
|
|
|
|
|
# `docker run` inside build.sh talks to the host daemon directly,
|
|
|
|
|
# no DinD gymnastics.
|
|
|
|
|
container:
|
|
|
|
|
image: catthehacker/ubuntu:act-latest
|
|
|
|
|
volumes:
|
|
|
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
2026-04-14 18:29:42 +02:00
|
|
|
env:
|
2026-04-14 18:45:32 +02:00
|
|
|
DOCKER_HOST: unix:///var/run/docker.sock
|
2026-04-14 18:13:15 +02:00
|
|
|
steps:
|
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
|
|
|
|
|
|
- name: Build ISO
|
|
|
|
|
run: ./iso/build.sh
|
|
|
|
|
|
|
|
|
|
- name: Report ISO hash
|
|
|
|
|
run: |
|
|
|
|
|
iso=$(ls iso/out/*.iso | head -1)
|
|
|
|
|
echo "ISO: $iso"
|
|
|
|
|
sha256sum "$iso"
|
|
|
|
|
|
|
|
|
|
- name: Upload ISO artifact
|
|
|
|
|
uses: actions/upload-artifact@v4
|
|
|
|
|
with:
|
|
|
|
|
name: furtka-iso
|
|
|
|
|
path: iso/out/*.iso
|
|
|
|
|
retention-days: 14
|
|
|
|
|
if-no-files-found: error
|