RPM: build for arm64 too, under emulation
All checks were successful
RPM / rpm (push) Successful in 31m47s

quine-linux's arm64 image installs it. force-quit-gui links GTK through
cgo, so arm64 builds in an arm64 Fedora rather than cross-compiling.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Philip Peterson 2026-11-03 20:56:29 -09:00
parent b820393162
commit 8564589ff5
2 changed files with 9 additions and 3 deletions

View file

@ -26,10 +26,16 @@ jobs:
- name: Build
# /var/cache/quine-rpm-build outlives the job (host-mode runner): Go's toolchain and module cache.
# Once per architecture, natively for amd64 and under the runner's QEMU emulation for arm64
# (quine-linux's arm64 image installs that one). force-quit-gui links GTK through cgo, so
# it's built for arm64 in an arm64 Fedora rather than cross-compiled.
run: |
mkdir -p out /var/cache/quine-rpm-build
podman run --rm -v "$PWD":/src -v /var/cache/quine-rpm-build:/cache -v "$PWD/out":/out \
registry.fedoraproject.org/fedora:44 bash /src/packaging/build-rpm.sh
for arch in amd64 arm64; do
podman run --rm --platform "linux/$arch" -v "$PWD":/src -v /var/cache/quine-rpm-build:/cache -v "$PWD/out":/out \
registry.fedoraproject.org/fedora:44 bash /src/packaging/build-rpm.sh
rm -rf bin
done
ls -l out
- name: Upload to the quine RPM group

View file

@ -8,7 +8,7 @@ Release: %{release_}%{?dist}
Summary: Reveals a Force Quit window when swap or memory pressure turns critical
License: Apache-2.0
URL: https://forge.quinefoundation.com/quine-global-labs/swap-watchdog
ExclusiveArch: x86_64
ExclusiveArch: x86_64 aarch64
Requires: gtk3
Requires: kdotool