We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents dd029f4 + 5848cc6 commit 6bcf449Copy full SHA for 6bcf449
1 file changed
.github/workflows/release.yaml
@@ -33,9 +33,15 @@ jobs:
33
go-version-file: go.mod
34
35
- name: Run Go tests
36
+ env:
37
+ # Test with the same environment as the build.
38
+ CGO_ENABLED: 0
39
run: go test ${{ env.go-modules }}
40
41
- name: Build binary
42
43
+ # Disable cgo so the pre-built binary is statically linked for maximum compatibility.
44
45
run: |
46
mkdir -p build
47
GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} go build -o wit-bindgen-go ./cmd/wit-bindgen-go
0 commit comments