CI: fix Arch-registry publish (use makepkg --packagelist; !strip for cross-arch repack)

The runner's PKGEXT is .pkg.tar.xz, so the .zst glob never matched;
--packagelist yields the exact filename, and options=('!strip') lets the
foreign-arch binary be packaged on the aarch64 host without stripping.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GLUwWE2KmFPzhKaf67tWbx
This commit is contained in:
Bendik Aagaard Lynghaug
2026-09-13 11:05:38 +02:00
co-authored by Claude Opus 4.8
parent 72768b597e
commit 366eb89c85
2 changed files with 11 additions and 4 deletions
+10 -4
View File
@@ -116,12 +116,18 @@ jobs:
# one host. Consumers: see the infrastructure README. # one host. Consumers: see the infrastructure README.
- name: Publish to the Arch package registry - name: Publish to the Arch package registry
run: | run: |
set -euo pipefail
cd aur cd aur
# Build both arches here (repackaging the released binaries) and
# push each to the instance Arch registry. Use --packagelist for
# the exact filename (honours the runner's PKGEXT/PKGDEST) rather
# than globbing, and !strip (in the PKGBUILD) so packaging the
# foreign-arch binary on this host does not try to strip it.
for carch in aarch64 x86_64; do for carch in aarch64 x86_64; do
rm -f ./*.pkg.tar.zst pkgfile=$(CARCH="$carch" makepkg --packagelist | tail -1)
CARCH=$carch makepkg -f --nodeps CARCH="$carch" makepkg -f --nodeps --noconfirm --skipinteg
curl --fail --user "${{ gitea.actor }}:${{ secrets.GITHUB_TOKEN }}" \ curl --fail-with-body --user "${{ gitea.actor }}:${{ secrets.GITHUB_TOKEN }}" \
--upload-file ./*-$carch.pkg.tar.zst \ --upload-file "$pkgfile" \
"${{ gitea.server_url }}/api/packages/${{ gitea.repository_owner }}/arch/uhhm" "${{ gitea.server_url }}/api/packages/${{ gitea.repository_owner }}/arch/uhhm"
done done
+1
View File
@@ -4,6 +4,7 @@ pkgver=0.1.3
pkgrel=1 pkgrel=1
pkgdesc="Wayland layer-surface wallpaper runner powered by GLSL/WGSL fragment shaders (wgpu)" pkgdesc="Wayland layer-surface wallpaper runner powered by GLSL/WGSL fragment shaders (wgpu)"
arch=('x86_64' 'aarch64') arch=('x86_64' 'aarch64')
options=('!strip')
url="https://project.uhhm.no/bl/gpupaper" url="https://project.uhhm.no/bl/gpupaper"
license=('MIT') license=('MIT')
depends=('wayland' 'libglvnd') depends=('wayland' 'libglvnd')