Files
AirlysOS/.github/workflows/build.yml
T

92 lines
4.0 KiB
YAML

name: Build Airlys OS S1 Production ISO
on:
push:
branches: [ main ]
workflow_dispatch:
permissions:
contents: write
jobs:
build-iso:
name: Build Airlys OS S1 Live ISO (KDE Plasma 6)
runs-on: ubuntu-latest
container:
image: archlinux:latest
options: --privileged --device=/dev/loop-control
steps:
- name: Check Free Disk Space
run: df -h
- name: Checkout Source
uses: actions/checkout@v4
- name: Initialize Keyring & Install Archiso
run: |
pacman-key --init
pacman-key --populate archlinux
pacman -Sy --noconfirm archlinux-keyring
pacman -Syu --noconfirm archiso git github-cli
- name: Build Airlys OS S1 Live ISO
run: |
mkdir -p /mnt/work out bin build_profile
# 1. Copy official verified releng profile (includes all verified syslinux, efiboot, systemd-boot structures)
cp -r /usr/share/archiso/configs/releng/* build_profile/
# 2. Prune bloated rescue / VM guest agent packages from releng (Nitro V 15 is a physical gaming laptop)
sed -i -E '/^(cloud-init|open-vm-tools|virtualbox-guest-utils-nox|hyperv|qemu-guest-agent|clonezilla|partclone|partimage|testdisk|espeakup|brltty|man-pages|man-db|irssi|lynx|darkhttpd|ddrescue|refind|livecd-sounds|grml-zsh-config|archinstall|nmap|tcpdump|openvpn|openconnect|lftp|modemmanager|usb_modeswitch|usbmuxd|bcachefs-tools|f2fs-tools|nilfs-utils|jfsutils|udftools|dmraid|tpm2-tools|tpm2-tss|pcsclite|openpgp-card-tools|sequoia-sq|ppp|pptpclient|wvdial|xl2tpd)$/d' build_profile/packages.x86_64
# 3. Append KDE Plasma 6 desktop & AMD hardware packages
cat profile/packages.x86_64 >> build_profile/packages.x86_64
# 4. Overlay our Airlys OS S1 branding, wallpapers, autologin and configs
cp -r profile/airootfs/* build_profile/airootfs/
# 5. Apply Airlys OS S1 profiledef (xz -Xbcj x86 compression)
cp -f profile/profiledef.sh build_profile/profiledef.sh
# 6. Build full production live bootable ISO
mkarchiso -v -w /mnt/work -o out build_profile/
ls -lh out/
cp -v out/*.iso bin/airlys.iso
sha256sum bin/airlys.iso > bin/sha256sum.txt
- name: Upload Airlys OS S1 ISO Artifact
uses: actions/upload-artifact@v4
with:
name: airlys-live-bootable-iso
path: |
bin/airlys.iso
bin/sha256sum.txt
retention-days: 14
- name: Publish to GitHub Release v1.0.0-s1
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
ISO_SIZE=$(stat -c%s bin/airlys.iso)
echo "ISO size is $ISO_SIZE bytes"
# Delete previous release and tag if it exists so we recreate it cleanly
gh release delete v1.0.0-s1 --yes --cleanup-tag --repo ${{ github.repository }} || true
if [ "$ISO_SIZE" -lt 2100000000 ]; then
echo "ISO is under 2GB limit! Uploading direct single airlys.iso..."
gh release create v1.0.0-s1 bin/airlys.iso bin/sha256sum.txt \
--title "Airlys OS S1 - Official Production Release" \
--notes "Airlys OS S1 (KDE Plasma 6 Desktop + Linux Zen 6.x) engineered by Er. Adam Eehan (Aira Group of Technology) & Aira 3 Ultra. Direct bootable ISO for Acer Nitro V 15 & modern UEFI PCs." \
--repo ${{ github.repository }}
else
echo "ISO exceeds 2GB limit ($ISO_SIZE bytes), splitting into parts for GitHub Releases..."
cd bin
split -b 1500M airlys.iso airlys.iso.part-
cd ..
gh release create v1.0.0-s1 bin/airlys.iso.part-* bin/sha256sum.txt \
--title "Airlys OS S1 - Official Production Release" \
--notes "Airlys OS S1 (KDE Plasma 6 Desktop + Linux Zen 6.x) engineered by Er. Adam Eehan (Aira Group of Technology) & Aira 3 Ultra." \
--repo ${{ github.repository }}
fi