From fa265a1ad19b18f3c52ca4b10ba0ebe20c33901b Mon Sep 17 00:00:00 2001 From: Elias Kohout Date: Thu, 2 Apr 2026 04:07:11 +0200 Subject: [PATCH] feat: build Arch packages for x86_64 and aarch64 Uses a matrix strategy with Go cross-compilation (GOARCH + CARCH) so both architectures build in the same amd64 container. Co-Authored-By: Claude Sonnet 4.6 --- .gitea/workflows/arch-publish.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/arch-publish.yml b/.gitea/workflows/arch-publish.yml index 1332015..d603f73 100644 --- a/.gitea/workflows/arch-publish.yml +++ b/.gitea/workflows/arch-publish.yml @@ -11,6 +11,13 @@ jobs: container: image: archlinux:latest options: --platform linux/amd64 + strategy: + matrix: + include: + - goarch: amd64 + pkgarch: x86_64 + - goarch: arm64 + pkgarch: aarch64 steps: - name: Install build dependencies run: pacman -Syu --noconfirm git nodejs go base-devel curl @@ -33,6 +40,7 @@ jobs: pkgname="axolotl" sed -i "s/pkgver=.*/pkgver=$pkgver/" packaging/arch/PKGBUILD + sed -i "s/^arch=.*/arch=('${{ matrix.pkgarch }}')/" packaging/arch/PKGBUILD git archive --format=tar.gz --prefix="$pkgname-$pkgver/" -o "packaging/arch/$pkgname-$pkgver.tar.gz" HEAD @@ -42,7 +50,7 @@ jobs: chown -R build:build . - name: Build package - run: su build -c "cd $PWD/packaging/arch && makepkg -s --noconfirm" + run: su build -c "cd $PWD/packaging/arch && GOARCH=${{ matrix.goarch }} CARCH=${{ matrix.pkgarch }} makepkg -s --noconfirm" - name: Publish to Gitea Registry run: |