Skip to content

Commit

Permalink
adding darwin-arm64 (Apple Silicon)
Browse files Browse the repository at this point in the history
  • Loading branch information
patlux committed Jan 17, 2022
1 parent 580665f commit f1f8b22
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ jobs:
cd $PROJECT_PATH
GOOS=darwin GOARCH=amd64 go build -ldflags "-X main.goos=darwin -X main.goarch=amd64" -o hatchet-darwin-amd64 -tags "static" $(go list ./cmd/...)
chmod +x hatchet-darwin-amd64
GOOS=darwin GOARCH=arm64 go build -ldflags "-X main.goos=darwin -X main.goarch=arm64" -o hatchet-darwin-arm64 -tags "static" $(go list ./cmd/...)
chmod +x hatchet-darwin-arm64
GOOS=linux GOARCH=amd64 go build -ldflags "-X main.goos=linux -X main.goarch=amd64" -o hatchet-linux-amd64 -tags "static" $(go list ./cmd/...)
chmod +x hatchet-linux-amd64
GOOS=windows GOARCH=amd64 go build -ldflags "-X main.goos=windows -X main.goarch=amd64" -o hatchet-windows-amd64.exe -tags "static" $(go list ./cmd/...)
Expand All @@ -66,4 +68,4 @@ jobs:
# This is necessary in order to push a commit to the repo
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Leave this line unchanged
with:
upload_assets: 'hatchet-darwin-amd64 hatchet-linux-amd64 hatchet-windows-amd64.exe'
upload_assets: 'hatchet-darwin-amd64 hatchet-darwin-arm64 hatchet-linux-amd64 hatchet-windows-amd64.exe'

0 comments on commit f1f8b22

Please sign in to comment.