Skip to content

Commit 709405b

Browse files
committed
build binaries for both x86_64 and arm64
1 parent e2e49ff commit 709405b

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,14 @@ jobs:
1414
- uses: actions/setup-go@v3
1515
with:
1616
go-version: '^1.18.0'
17-
- name: Build
18-
run: cd src && CGO_ENABLED=0 go build -ldflags '-extldflags "-static"' -tags timetzdata -o ../aws-codeartifact-proxy
17+
- name: Build x86_64
18+
run: cd src && CGO_ENABLED=0 go build -ldflags '-extldflags "-static"' -tags timetzdata -o ../aws-codeartifact-proxy-x86_64
19+
- name: Build arm64
20+
run: cd src && CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -ldflags '-extldflags "-static"' -tags timetzdata -o ../aws-codeartifact-proxy-arm64
1921
- name: Github Release
2022
uses: softprops/action-gh-release@v1
2123
with:
22-
files: aws-codeartifact-proxy
24+
files: aws-codeartifact-proxy-x86_64 aws-codeartifact-proxy-arm64
2325
- name: Log in to Docker Hub
2426
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
2527
with:

0 commit comments

Comments
 (0)