Skip to content

Commit

Permalink
Merge pull request etcd-io#11245 from YoyinZyc/prevent-darwin-build-3.3
Browse files Browse the repository at this point in the history
scripts: avoid release builds on darwin machine.
  • Loading branch information
gyuho authored Oct 11, 2019
2 parents 6d80523 + ffcddac commit 660dc83
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/build-binary
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 660dc83

Please sign in to comment.