Skip to content
This repository has been archived by the owner on Sep 23, 2024. It is now read-only.

Commit

Permalink
chore: build binaries for arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
clement2026 committed Sep 27, 2023
1 parent fac00a3 commit 52e14fd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
args: 'build/talk-*.*'
args: 'build/*.(gz|zip)'

amd64:
name: amd64
Expand Down
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,15 @@ run:
release:
go mod download
GOOS=linux GOARCH=amd64 go build -o build/${BINARY}-linux-amd64 ${ENTRY};
GOOS=linux GOARCH=arm64 go build -o build/${BINARY}-linux-arm64 ${ENTRY};
GOOS=darwin GOARCH=amd64 go build -o build/${BINARY}-darwin-amd64 ${ENTRY};
GOOS=darwin GOARCH=arm64 go build -o build/${BINARY}-darwin-arm64 ${ENTRY};
GOOS=windows GOARCH=amd64 go build -o build/${BINARY}-windows-amd64.exe ${ENTRY};
cd build; \
tar -zcvf ${BINARY}-linux-amd64.tar.gz ${BINARY}-linux-amd64; \
tar -zcvf ${BINARY}-linux-arm64.tar.gz ${BINARY}-linux-arm64; \
tar -zcvf ${BINARY}-darwin-amd64.tar.gz ${BINARY}-darwin-amd64; \
tar -zcvf ${BINARY}-darwin-arm64.tar.gz ${BINARY}-darwin-arm64; \
zip -r ${BINARY}-windows-amd64.exe.zip ${BINARY}-windows-amd64.exe;

.PHONY: clean
Expand Down

0 comments on commit 52e14fd

Please sign in to comment.