Skip to content

Commit 4c594e6

Browse files
committed
chore: make release binaries static
1 parent c9543e2 commit 4c594e6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,10 @@ jobs:
7575
7676
- name: Build ${{ matrix.os }}-${{ matrix.arch }}
7777
env:
78-
GOLDFLAGS: "-s -w"
7978
GOARCH: ${{ matrix.arch }}
8079
GOOS: ${{ matrix.os }}
8180
run: |
82-
go build -o ${{ env.asset_build }}
81+
CGO_ENABLED=0 go build -s -w --ldflags '-s -w -extldflags "-static"' --tags netgo -a -o ${{ env.asset_build }}
8382
gzip --name --suffix ${{ env.asset_gzip_suffix }} ${{ env.asset_build }}
8483
8584
- name: Upload Release Asset

0 commit comments

Comments
 (0)