scripts: Add support to build ppc64le binary for release
@@ -59,7 +59,14 @@ function main {
for os in darwin windows linux; do
export GOOS=${os}
- export GOARCH="amd64"
+ TARGET_ARCHS=("amd64")
+
+ if [ ${GOOS} == "linux" ]; then
+ TARGET_ARCHS+=("ppc64le")
+ fi
+
+ for TARGET_ARCH in "${TARGET_ARCHS[@]}"; do
+ export GOARCH=${TARGET_ARCH}
pushd etcd >/dev/null
GO_LDFLAGS="-s" ./build
@@ -77,6 +84,7 @@ function main {
echo "Wrote release/${TARGET}.zip"
fi
done
+ done
}
main
