mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Merge pull request #11245 from YoyinZyc/prevent-darwin-build-3.3
scripts: avoid release builds on darwin machine.
This commit is contained in:
commit
660dc83e19
@ -57,6 +57,11 @@ function main {
|
|||||||
cd release
|
cd release
|
||||||
setup_env "${PROJ}" "${VER}"
|
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
|
for os in darwin windows linux; do
|
||||||
export GOOS=${os}
|
export GOOS=${os}
|
||||||
TARGET_ARCHS=("amd64")
|
TARGET_ARCHS=("amd64")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user