swap-watchdog/.forgejo/workflows/rpm.yml
Philip Peterson cb12599391
All checks were successful
RPM / rpm (arm64, runner-arm64-linux) (push) Successful in 3m4s
RPM / rpm (amd64, runner-x86-linux) (push) Successful in 1m7s
RPM: each architecture natively, on its own runner
arm64 builds on the new runner-arm64-linux instead of under emulation.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 21:50:12 -09:00

44 lines
1.4 KiB
YAML

name: RPM
# Builds swap-watchdog as RPMs for x86_64 and aarch64 and uploads them to the
# forge's `quine` RPM group,
# https://forge.quinefoundation.com/api/packages/quine-global-labs/rpm/quine,
# which quine-linux's image installs it from. The build itself is the shared
# quine-global/app-build action; packaging/swap-watchdog.spec is this app's part.
#
# Secret: REGISTRY_TOKEN, a Forgejo token with package write access.
# Variable (optional): REGISTRY_USER, the token's owner (default: the actor).
on:
push:
branches: [main]
workflow_dispatch:
concurrency:
group: rpm-${{ github.ref }}
cancel-in-progress: true
jobs:
rpm:
# Each architecture natively, on its own runner.
strategy:
matrix:
include:
- arch: amd64
runner: runner-x86-linux
- arch: arm64
runner: runner-arm64-linux
runs-on: ${{ matrix.runner }}
steps:
- uses: https://forge.quinefoundation.com/quine-global-labs/mirror-actions-checkout@v4
with:
fetch-depth: 0
- uses: https://forge.quinefoundation.com/quine-global/app-build@v1
with:
name: swap-watchdog
kind: go
archs: ${{ matrix.arch }}
go-packages: ./cmd/swap-watchdog ./cmd/force-quit-gui
dnf-packages: gtk3-devel
registry-username: ${{ vars.REGISTRY_USER || github.actor }}
registry-password: ${{ secrets.REGISTRY_TOKEN }}