diff --git a/CHANGELOG.adoc b/CHANGELOG.adoc index c561ba9a40..12024b6c02 100644 --- a/CHANGELOG.adoc +++ b/CHANGELOG.adoc @@ -37,7 +37,6 @@ | Fix various misspellings and linter items | https://github.com/knative/client/pull/1057[#1057] - | 🎁 | Add Aliases to Help Command and Remove Aliases in Short | https://github.com/knative/client/pull/1055[#1055] @@ -49,6 +48,10 @@ | 🎁 | Add `kn service import` command (experimental) | https://github.com/knative/client/pull/1065[#1065] + +| 🎁 +| Add arm64 binary to the release +| https://github.com/knative/client/pull/1106[#1106] |=== ## v0.18.1 (2020-10-13) diff --git a/hack/build.sh b/hack/build.sh index 042d280d70..1fad436d8b 100755 --- a/hack/build.sh +++ b/hack/build.sh @@ -276,6 +276,8 @@ cross_build() { export CGO_ENABLED=0 echo " 🐧 kn-linux-amd64" GOOS=linux GOARCH=amd64 go build -mod=vendor -ldflags "${ld_flags}" -o ./kn-linux-amd64 ./cmd/... || failed=1 + echo " 💪 kn-linux-arm64" + GOOS=linux GOARCH=arm64 go build -mod=vendor -ldflags "${ld_flags}" -o ./kn-linux-arm64 ./cmd/... || failed=1 echo " 🍏 kn-darwin-amd64" GOOS=darwin GOARCH=amd64 go build -mod=vendor -ldflags "${ld_flags}" -o ./kn-darwin-amd64 ./cmd/... || failed=1 echo " 🎠 kn-windows-amd64.exe" diff --git a/hack/release.sh b/hack/release.sh index a0267cfb1f..58906b2ef5 100755 --- a/hack/release.sh +++ b/hack/release.sh @@ -29,15 +29,17 @@ function build_release() { export GO111MODULE=on export CGO_ENABLED=0 - echo "🚧 🐧 Building for Linux" + echo "🚧 🐧 Building for Linux (amd64)" GOOS=linux GOARCH=amd64 go build -mod=vendor -ldflags "${ld_flags}" -o ./kn-linux-amd64 ./cmd/... + echo "🚧 💪 Building for Linux (arm64)" + GOOS=linux GOARCH=arm64 go build -mod=vendor -ldflags "${ld_flags}" -o ./kn-linux-arm64 ./cmd/... echo "🚧 🍏 Building for macOS" GOOS=darwin GOARCH=amd64 go build -mod=vendor -ldflags "${ld_flags}" -o ./kn-darwin-amd64 ./cmd/... echo "🚧 🎠 Building for Windows" GOOS=windows GOARCH=amd64 go build -mod=vendor -ldflags "${ld_flags}" -o ./kn-windows-amd64.exe ./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-windows-amd64.exe kn-image-location.yaml" + ARTIFACTS_TO_PUBLISH="kn-darwin-amd64 kn-linux-amd64 kn-linux-arm64 kn-windows-amd64.exe kn-image-location.yaml" if type sha256sum >/dev/null 2>&1; then echo "🧮 Checksum:" sha256sum ${ARTIFACTS_TO_PUBLISH}