Skip to content

Commit

Permalink
Build arm32 binaries with GOARM=6
Browse files Browse the repository at this point in the history
Ref #2986
  • Loading branch information
zyedidia committed Oct 22, 2023
1 parent 68d88b5 commit d8e9d61
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tools/compile-linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ GOOS=linux GOARCH=386 go build -ldflags "-s -w -X main.Version=$1 -X main.Commit
tar -czf micro-$1-linux32.tar.gz micro-$1
mv micro-$1-linux32.tar.gz binaries
echo "Linux arm 32"
GOOS=linux GOARCH=arm go build -ldflags "-s -w -X main.Version=$1 -X main.CommitHash=$HASH -X 'main.CompileDate=$DATE'" -o micro-$1/micro ./cmd/micro
GOOS=linux GOARM=6 GOARCH=arm go build -ldflags "-s -w -X main.Version=$1 -X main.CommitHash=$HASH -X 'main.CompileDate=$DATE'" -o micro-$1/micro ./cmd/micro
tar -czf micro-$1-linux-arm.tar.gz micro-$1
mv micro-$1-linux-arm.tar.gz binaries
echo "Linux arm 64"
Expand Down
2 changes: 1 addition & 1 deletion tools/cross-compile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ tar -czf micro-$1-linux32.tar.gz micro-$1
mv micro-$1-linux32.tar.gz binaries

echo "Linux ARM 32"
GOOS=linux GOARCH=arm make build
GOOS=linux GOARM=6 GOARCH=arm make build
mv micro micro-$1
tar -czf micro-$1-linux-arm.tar.gz micro-$1
mv micro-$1-linux-arm.tar.gz binaries
Expand Down

0 comments on commit d8e9d61

Please sign in to comment.