From 709405bb7c388513a59dbb7fa8129c684e17fcac Mon Sep 17 00:00:00 2001 From: Steven Tan Date: Fri, 29 Sep 2023 17:38:59 +0000 Subject: [PATCH] build binaries for both x86_64 and arm64 --- .github/workflows/release.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index dc112fc..b2c809c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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: