16 Commits

Author SHA1 Message Date
41a22d6281 fix(ci): fail hard when registry upload returns non-2xx
curl -sf was silencing upload errors: r105 was 'Published' six times
in a row but never landed in the registry. Capture the HTTP status
and abort on non-2xx so the run goes red and the response body shows
up in the log.
2026-04-20 12:47:26 +02:00
13567819ca fix(ci): source PKGBUILD to read makedepends reliably 2026-04-20 12:43:44 +02:00
71a94ac74e fix(ci): install only makedepends, skip full depends via -d
moonarch-git's runtime depends include AUR-only packages (stasis,
auto-cpufreq, ttf-ubuntusans-nerd) that plain pacman cannot resolve,
so `makepkg -s` fails with "Could not resolve all dependencies" —
even though those runtime deps aren't needed to build the package.

Extract makedepends from PKGBUILD, install them targeted (cargo/go
for Rust and Go packages; empty for moonarch-git), then run makepkg
with -d so it skips the full dep check. Rust packages still get their
compiler, moonarch-git builds without needing the AUR world.
2026-04-20 12:38:40 +02:00
6c89ffd9cd fix(ci): upload every makepkg artifact, not just the first
PKGBUILDs with options=('debug') produce a main + -debug split pair.
The previous `ls -t | head -1` only uploaded one, and which one won
was mtime-dependent. Loop over all *.pkg.tar.zst and parse pkgname
per file (so -debug gets its own registry entry).
2026-04-20 11:34:59 +02:00
30f8c4100f docs(ci): harden pacman -Sy comment against future -Syu regressions
Explicit warning in the workflow so nobody reintroduces the -Syu that
took the Gitea host down on 2026-04-20.
2026-04-20 11:26:01 +02:00
8d1dacd6fa fix(ci): use pacman -Sy instead of -Syu to avoid host I/O overload
Previous -Syu triggered a full system upgrade inside the runner
container, which together with the concurrent Rust build saturated
the shared host and took Gitea down. -Sy just refreshes the package
DB, which is all makepkg -s actually needs to resolve current deps.
2026-04-20 10:04:34 +02:00
aab4b75352 fix(ci): pacman -Syu before build to refresh stale package DB
Runner container has a cached pacman DB that lists package versions
already rotated off the mirrors, causing 404s when makepkg -s tries
to pull makedepends (gtk4, mesa, llvm-libs). Sync the DB first.
2026-04-20 09:43:45 +02:00
49c7031315 fix(ci): drop -d from makepkg so makedepends get installed
makepkg -sfd skipped dependency checks, preventing `-s` from pulling
in rust/cargo (moonlock/moongreet/moonset) and go (sshfsc). Builds
failed with `cargo: command not found`. Remove `-d`; `-s` now installs
makedepends via pacman before the build.
2026-04-20 09:39:11 +02:00
1a84342f13 Remove debug logging from build workflow, use -sf for upload 2026-04-01 18:00:14 +02:00
c9b6aab652 Debug: log HTTP status codes for upload and delete 2026-04-01 17:55:33 +02:00
bad7680b4c Simplify build workflow for non-root runner
Runner now executes as builder user, so no su/chown/chmod needed.
makepkg runs directly without permission workarounds.
2026-04-01 17:49:15 +02:00
c948396a1e Fix makepkg BUILDDIR: use current dir instead of root-owned cache 2026-04-01 16:57:01 +02:00
318d15567b Fix build workflow for host mode runner
Clean up stale repo dir, add safe.directory for git as root,
and chown repo to builder before makepkg.
2026-04-01 16:54:56 +02:00
6cf9bcd467 Remove setup step from build workflow
Dependencies (git, curl, builder user) are now provided by the
custom act_runner image. Only su builder for makepkg remains.
2026-04-01 16:43:59 +02:00
96a2574c7e Fix CI: run makepkg in Arch container with non-root user
The act_runner now uses docker mode with archlinux:base-devel.
Install git/curl and create a builder user since makepkg refuses
to run as root.
2026-04-01 15:44:11 +02:00
793c338968 Add CI workflow to build and publish packages to Gitea Registry
Triggers on PKGBUILD changes (from pkgver-bot commits).
Builds the changed package with makepkg and uploads the
.pkg.tar.zst to the Gitea Arch Package Registry.
2026-04-01 15:26:58 +02:00