From 65b2694ac333b8dc64520f6482a91c8b5fb31c74 Mon Sep 17 00:00:00 2001 From: Weii Wang Date: Thu, 9 Jan 2025 14:04:59 +0800 Subject: [PATCH] Support ppc64le and s390x (#17) --- snap/snapcraft.yaml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index 6a5e9cb..5c0a22e 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -17,6 +17,10 @@ architectures: build-for: amd64 - build-on: amd64 build-for: arm64 + - build-on: amd64 + build-for: s390x + - build-on: amd64 + build-for: ppc64el apps: aproxy: @@ -35,7 +39,11 @@ parts: - go override-build: | snapcraftctl build - export GOARCH=$SNAPCRAFT_TARGET_ARCH + if [ $SNAPCRAFT_TARGET_ARCH == ppc64el ]; then + export GOARCH=ppc64le + else + export GOARCH=$SNAPCRAFT_TARGET_ARCH + fi export CGO_ENABLED=0 go mod download go build -ldflags="-w -s"