Skip to content

Commit

Permalink
Support ppc64le and s390x (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
weiiwang01 authored Jan 9, 2025
1 parent e58aac8 commit 65b2694
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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"
Expand Down

0 comments on commit 65b2694

Please sign in to comment.