Skip to content

Commit 6e8025b

Browse files
committed
Build statically-linked pre-built binaries
1 parent 9d80dee commit 6e8025b

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/release.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ jobs:
3636
run: go test ${{ env.go-modules }}
3737

3838
- name: Build binary
39+
env:
40+
# Disable cgo so the pre-built binary is statically linked for maximum compatibility.
41+
CGO_ENABLED: 0
3942
run: |
4043
mkdir -p build
4144
GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} go build -o wit-bindgen-go ./cmd/wit-bindgen-go

0 commit comments

Comments
 (0)