Skip to content

Commit 29ae19f

Browse files
committed
fix(ci): setting GOARCH as GHA env
1 parent b762d2b commit 29ae19f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,11 @@ jobs:
3333
with:
3434
go-version: 1.19
3535
- name: golang build
36+
env:
37+
GOARCH: ${{ matrix.arch }}
3638
run: |
3739
cd cmd/gitops
38-
GOARCH=${{ matrix.arch }} go build -ldflags="-s -w" .
40+
go build -ldflags="-s -w" .
3941
- name: Upload binaries to release
4042
uses: svenstaro/upload-release-action@v2
4143
with:

0 commit comments

Comments
 (0)