diff --git a/.gitea/workflows/build-and-publish.yaml b/.gitea/workflows/build-and-publish.yaml index 1eefbb6..b83929c 100644 --- a/.gitea/workflows/build-and-publish.yaml +++ b/.gitea/workflows/build-and-publish.yaml @@ -41,7 +41,16 @@ jobs: echo "==> Building $pkg" cd "$pkg" - makepkg -sf --noconfirm + # Install makedepends manually (cargo, go, …) and skip the full + # depends check via -d. Rationale: moonarch-git's runtime depends + # include AUR-only packages (stasis, auto-cpufreq, ttf-ubuntusans-nerd) + # which pacman can't resolve. Those deps aren't needed at build time. + MAKEDEPS=$(awk '/^makedepends=\(/,/^\)/' PKGBUILD | grep -oE "'[^']+'" | tr -d "'" | tr '\n' ' ') + if [ -n "$MAKEDEPS" ]; then + # shellcheck disable=SC2086 + sudo pacman -S --needed --noconfirm $MAKEDEPS + fi + makepkg -sfd --noconfirm # makepkg can emit multiple artifacts per build (main + -debug # split package). Upload each. Arch filename convention: