Skip to content

Commit

Permalink
Merge pull request #14436 from serathius/arm64
Browse files Browse the repository at this point in the history
[release-3.5] server/etcdmain: add build support for Apple M1
  • Loading branch information
ahrtr committed Sep 8, 2022
2 parents bb3fae4 + c79f96d commit a5a33cb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/tests.yaml
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions scripts/build-binary
Expand Up @@ -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}

Expand Down

0 comments on commit a5a33cb

Please sign in to comment.