Skip to content

Commit

Permalink
build binaries for both x86_64 and arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
sktan committed Sep 29, 2023
1 parent e2e49ff commit 709405b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,14 @@ jobs:
- uses: actions/setup-go@v3
with:
go-version: '^1.18.0'
- name: Build
run: cd src && CGO_ENABLED=0 go build -ldflags '-extldflags "-static"' -tags timetzdata -o ../aws-codeartifact-proxy
- name: Build x86_64
run: cd src && CGO_ENABLED=0 go build -ldflags '-extldflags "-static"' -tags timetzdata -o ../aws-codeartifact-proxy-x86_64
- name: Build arm64
run: cd src && CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -ldflags '-extldflags "-static"' -tags timetzdata -o ../aws-codeartifact-proxy-arm64
- name: Github Release
uses: softprops/action-gh-release@v1
with:
files: aws-codeartifact-proxy
files: aws-codeartifact-proxy-x86_64 aws-codeartifact-proxy-arm64
- name: Log in to Docker Hub
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
with:
Expand Down

0 comments on commit 709405b

Please sign in to comment.