diff --git a/hack/build.sh b/hack/build.sh index 25866db051..88b5cf5789 100755 --- a/hack/build.sh +++ b/hack/build.sh @@ -284,6 +284,8 @@ cross_build() { GOOS=windows GOARCH=amd64 go build -mod=vendor -ldflags "${ld_flags}" -o ./kn-windows-amd64.exe ./cmd/... || failed=1 echo " Z kn-linux-s390x" GOOS=linux GOARCH=s390x go build -mod=vendor -ldflags "${ld_flags}" -o ./kn-linux-s390x ./cmd/... || failed=1 + echo " P kn-linux-ppc64le" + GOOS=linux GOARCH=ppc64le go build -mod=vendor -ldflags "${ld_flags}" -o ./kn-linux-ppc64le ./cmd/... || failed=1 return ${failed} } diff --git a/hack/release.sh b/hack/release.sh index 2a8dfa0467..5db888a7b8 100755 --- a/hack/release.sh +++ b/hack/release.sh @@ -39,9 +39,11 @@ function build_release() { GOOS=windows GOARCH=amd64 go build -mod=vendor -ldflags "${ld_flags}" -o ./kn-windows-amd64.exe ./cmd/... echo "🚧 Z Building for Linux(s390x)" GOOS=linux GOARCH=s390x go build -mod=vendor -ldflags "${ld_flags}" -o ./kn-linux-s390x ./cmd/... + echo "🚧 P Building for Linux (ppc64le)" + GOOS=linux GOARCH=ppc64le go build -mod=vendor -ldflags "${ld_flags}" -o ./kn-linux-ppc64le ./cmd/... echo "🚧 🐳 Building the container image" ko resolve --strict ${KO_FLAGS} -f config/ > kn-image-location.yaml - ARTIFACTS_TO_PUBLISH="kn-darwin-amd64 kn-linux-amd64 kn-linux-arm64 kn-windows-amd64.exe kn-linux-s390x kn-image-location.yaml" + ARTIFACTS_TO_PUBLISH="kn-darwin-amd64 kn-linux-amd64 kn-linux-arm64 kn-windows-amd64.exe kn-linux-s390x kn-linux-ppc64le kn-image-location.yaml" sha256sum "${ARTIFACTS_TO_PUBLISH}" > checksums.txt ARTIFACTS_TO_PUBLISH="${ARTIFACTS_TO_PUBLISH} checksums.txt" echo "🧮 Checksum:"