scripts: Add support to build ppc64le binary for release

release-3.2
Manjunath A Kumatagi 2017-02-01 20:56:33 +05:30
parent 0df1822212
commit 5d41e7f09b
1 changed files with 22 additions and 14 deletions

View File

@ -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