Skip to content

Commit 03949a4

Browse files
committed
Build static binaries
Fixes cli#2555
1 parent f415245 commit 03949a4

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.github/workflows/go.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,6 @@ jobs:
3939
uses: actions/checkout@v2
4040

4141
- name: Build
42+
env:
43+
CGO_ENABLED: '0'
4244
run: go build -v ./cmd/gh

.goreleaser.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ builds:
2525
id: linux
2626
goos: [linux]
2727
goarch: [386, amd64, arm64]
28+
env:
29+
- CGO_ENABLED=0
2830

2931
- <<: *build_defaults
3032
id: windows

0 commit comments

Comments
 (0)