Add Gitea Actions workflow for ISO build

This commit is contained in:
2026-08-19 21:26:16 +02:00
parent d4c155a0af
commit ebf861e083
+64
View File
@@ -0,0 +1,64 @@
name: Build ISO
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
container:
image: artixlinux/artixlinux:base
options: --privileged
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
pacman -Syu --noconfirm --needed --overwrite='*' \
artools \
git \
squashfs-tools \
sudo \
python \
python-pip
- name: Bootstrap Antergos package signing key
run: |
KEY_FINGERPRINT=AA644A095D2AF5F950FADB57C51BFE8D3A985236
curl -fsSL -o /tmp/antergos-next.gpg https://raw.githubusercontent.com/Antergos-NeXT/antergos-packages/master/packages/antergos-next-keyring/antergos-next.gpg
pacman-key --init
pacman-key --add /tmp/antergos-next.gpg
gpg --homedir /etc/pacman.d/gnupg --batch --with-colons --fingerprint "$KEY_FINGERPRINT" | grep -q "fpr:::::::::$KEY_FINGERPRINT:"
pacman-key --lsign-key "$KEY_FINGERPRINT"
rm -f /tmp/antergos-next.gpg
- name: Set up WORKSPACE_DIR
run: |
echo "WORKSPACE_DIR=${{ gitea.workspace }}" >> $GITHUB_ENV
- name: Override pacman.conf with antergos-pkgs repo
run: |
mkdir -p /root/.config/artools/pacman.conf.d
cp "pacman.conf.d/iso-x86_64.conf" \
/root/.config/artools/pacman.conf.d/iso-x86_64.conf
cp "pacman.conf.d/iso-x86_64.conf" \
/usr/share/artools/pacman.conf.d/iso-x86_64.conf
- name: Build ISO
run: |
sudo -E ./buildiso -p antergos
- name: Generate checksums
run: |
ISO=$(ls iso/antergos/antergos-*.iso 2>/dev/null | head -1)
[[ -z "$ISO" || ! -f "$ISO" ]] && { echo "No ISO found"; exit 1; }
sha256sum "$ISO" > "$ISO.sha256"
cat "$ISO.sha256"
- name: Upload ISO artifact
uses: actions/upload-artifact@v4
with:
name: Antergos-NeXT-ISO
path: iso/