Skip to content

Commit

Permalink
added arm64 build target
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremycook123 committed Jan 25, 2022
1 parent 6dffaa0 commit 715b5fd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ jobs:
go get -v -t -d ./...
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o api
tar -czf release-${{ env.RELEASE_VERSION }}.linux-amd64.tar.gz api
CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -o api
tar -czf release-${{ env.RELEASE_VERSION }}.linux-arm64.tar.gz api
CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -o api
tar -czf release-${{ env.RELEASE_VERSION }}.darwin-amd64.tar.gz api
ls -la
Expand All @@ -39,6 +41,7 @@ jobs:
name: release-${{ env.RELEASE_VERSION }}
path: |
release-${{ env.RELEASE_VERSION }}.linux-amd64.tar.gz
release-${{ env.RELEASE_VERSION }}.linux-arm64.tar.gz
release-${{ env.RELEASE_VERSION }}.darwin-amd64.tar.gz
# Create Release v1
Expand All @@ -49,6 +52,7 @@ jobs:
name: release-${{ env.RELEASE_VERSION }}
files: |
release-${{ env.RELEASE_VERSION }}.linux-amd64.tar.gz
release-${{ env.RELEASE_VERSION }}.linux-arm64.tar.gz
release-${{ env.RELEASE_VERSION }}.darwin-amd64.tar.gz
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 715b5fd

Please sign in to comment.