mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Merge pull request #14436 from serathius/arm64
[release-3.5] server/etcdmain: add build support for Apple M1
This commit is contained in:
commit
a5a33cbe4c
1
.github/workflows/tests.yaml
vendored
1
.github/workflows/tests.yaml
vendored
@ -44,6 +44,7 @@ jobs:
|
||||
GOARCH=amd64 PASSES='build' ./test.sh
|
||||
GOARCH=386 PASSES='build' ./test.sh
|
||||
GO_BUILD_FLAGS='-v -mod=readonly' GOOS=darwin GOARCH=amd64 ./build.sh
|
||||
GO_BUILD_FLAGS='-v -mod=readonly' GOOS=darwin GOARCH=arm64 ./build.sh
|
||||
GO_BUILD_FLAGS='-v -mod=readonly' GOOS=windows GOARCH=amd64 ./build.sh
|
||||
GO_BUILD_FLAGS='-v -mod=readonly' GOARCH=arm ./build.sh
|
||||
GO_BUILD_FLAGS='-v -mod=readonly' GOARCH=arm64 ./build.sh
|
||||
|
@ -79,6 +79,10 @@ function main {
|
||||
TARGET_ARCHS+=("s390x")
|
||||
fi
|
||||
|
||||
if [ ${GOOS} == "darwin" ]; then
|
||||
TARGET_ARCHS+=("arm64")
|
||||
fi
|
||||
|
||||
for TARGET_ARCH in "${TARGET_ARCHS[@]}"; do
|
||||
export GOARCH=${TARGET_ARCH}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user