Merge pull request #11245 from YoyinZyc/prevent-darwin-build-3.3

scripts: avoid release builds on darwin machine.
This commit is contained in:
Gyuho Lee 2019-10-11 12:37:34 -07:00 committed by GitHub
commit 660dc83e19
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -57,6 +57,11 @@ function main {
cd release
setup_env "${PROJ}" "${VER}"
if [[ $(go env GOOS) == "darwin" ]]; then
echo "Please use linux machine for release builds."
exit 1
fi
for os in darwin windows linux; do
export GOOS=${os}
TARGET_ARCHS=("amd64")