Skip to content

Commit

Permalink
Merge pull request #516 from georgealton/build-for-arm64
Browse files Browse the repository at this point in the history
Adds Cross Compilation support for Linux ARM 64
  • Loading branch information
ericzbeard authored Sep 5, 2024
2 parents b5685eb + 1bcfe75 commit 7eaa528
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -eoux pipefail

declare -a platforms=(linux/amd64 linux/386 linux/arm darwin/amd64 darwin/arm64 windows/amd64 windows/386)
declare -a platforms=(linux/amd64 linux/386 linux/arm linux/arm64 darwin/amd64 darwin/arm64 windows/amd64 windows/386)
declare -A mapping=([darwin]=darwin [linux]=linux [windows]=windows [amd64]=amd64 [386]=i386 [arm]=arm [arm64]=arm64)
declare -a CGO=(0 1)

Expand All @@ -14,7 +14,7 @@ for platform in "${platforms[@]}"; do
for cgo in "${CGO[@]}"; do
name="rain-${GITHUB_REF##*/}_${mapping[$os]}-${mapping[$arch]}"
echo "$os $arch $cgo"

if [ "$cgo" == "0" ]; then
name+="-nocgo"
fi
Expand Down

0 comments on commit 7eaa528

Please sign in to comment.