Files
euri-iso/.github/workflows/build.yml
T
c-ludenberg 38aea4c370 CI: use our buildiso with --overwrite='*' to resolve calamares branding file conflict
- Stock buildiso from artools passes --overwrite='*' through basestrap
  to pacman (basestrap stuffs all remaining args into pacman_args).
  Our copy already has this flag; CI was ignoring it.
- Add jack2, noto-fonts-emoji to common.yaml to pre-resolve provider
  prompts before they block the build.
2026-06-27 18:26:16 +02:00

96 lines
2.8 KiB
YAML

name: Build ISO
on:
push:
branches: [master]
pull_request:
branches: [master]
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 \
artools \
git \
squashfs-tools \
sudo \
python \
python-pip
- name: Set up WORKSPACE_DIR
run: |
echo "WORKSPACE_DIR=${{ github.workspace }}" >> $GITHUB_ENV
- name: Debug workspace
run: |
echo "GITHUB_WORKSPACE=$GITHUB_WORKSPACE"
echo "github.workspace=${{ github.workspace }}"
pwd
ls -la
- 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
# Also override the default in case USER_CONF_DIR differs
cp "pacman.conf.d/iso-x86_64.conf" \
/usr/share/artools/pacman.conf.d/iso-x86_64.conf
- name: Build ISO
run: |
./buildiso -p antergos
- name: Upload ISO artifact
uses: actions/upload-artifact@v4
with:
name: Antergos-NeXT-ISO
path: /var/lib/artools/buildiso/iso/
- name: Upload to Internet Archive
if: github.ref == 'refs/heads/master'
env:
IA_ACCESS_KEY: ${{ secrets.IA_ACCESS_KEY }}
IA_SECRET_KEY: ${{ secrets.IA_SECRET_KEY }}
run: |
pip install internetarchive
cat > ~/.config/internetarchive/ia.ini <<EOF
[s3]
access = $IA_ACCESS_KEY
secret = $IA_SECRET_KEY
EOF
ISO_DIR="/var/lib/artools/buildiso/iso"
ISO=$(ls "$ISO_DIR"/antergos/*.iso 2>/dev/null | head -1)
[[ -z "$ISO" || ! -f "$ISO" ]] && { echo "No ISO found"; exit 1; }
DATE=$(date +%Y.%m.%d)
IDENTIFIER="antergos-next-$(date +%Y%m%d)"
SIZE=$(stat -c%s "$ISO")
if [[ $SIZE -lt 524288000 ]]; then
echo "WARNING: ISO smaller than expected (${SIZE} bytes)"
file "$ISO" | grep -q "ISO 9660\|UDF" || { echo "Corrupted ISO"; exit 1; }
fi
ia upload "$IDENTIFIER" "$ISO" \
--metadata="title:Antergos NeXT $(date +%Y.%m.%d)" \
--metadata="mediatype:software" \
--metadata="collection:open_source_software" \
--metadata="description:Antergos NeXT community revival ISO — KDE Plasma, OpenRC, Calamares installer" \
--metadata="subject:Antergos; Linux; Artix; OpenRC; KDE Plasma; Calamares" \
--retries 5
echo "Uploaded to: https://archive.org/details/$IDENTIFIER"