Skip to content

Commit

Permalink
use UPX for amd64 only
Browse files Browse the repository at this point in the history
UPX broke arm64 and we don't e2e test for all archs yet

Signed-off-by: adrienjt <[email protected]>
  • Loading branch information
adrienjt committed Nov 16, 2020
1 parent 4b6f832 commit 8ddc194
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build/build_one.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ fi
mkdir -p "$context_dir"

CGO_ENABLED=0 GOOS=$OS GOARCH=$ARCH go build -trimpath -o "$context_dir/$BIN" "${extra_args[@]}" "$PKG"
if [ "$VERSION" != dev ] && [ "$ARCH" != s390x ]; then
if [ "$VERSION" != dev ] && [ "$ARCH" = amd64 ]; then
upx-ucl "$context_dir/$BIN"
fi

Expand Down

0 comments on commit 8ddc194

Please sign in to comment.