Skip to content

Commit cb93883

Browse files
authored
Go: fix cgo build (#16724)
Signed-off-by: Jin Hai <haijin.chn@gmail.com>
1 parent 2b95fa2 commit cb93883

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -424,6 +424,7 @@ jobs:
424424
output="${DIST_DIR}/${CLI_NAME}-${RELEASE_TAG}-${{ matrix.goos }}-${{ matrix.goarch }}"
425425
echo "Building ${{ matrix.goos }}/${{ matrix.goarch }} -> ${output}"
426426
427+
CGO_ENABLED=0 \
427428
GOOS="${{ matrix.goos }}" \
428429
GOARCH="${{ matrix.goarch }}" \
429430
go build \
@@ -458,6 +459,7 @@ jobs:
458459
exit 1
459460
}
460461
462+
$env:CGO_ENABLED = "0"
461463
$env:CC = $cc
462464
$env:GOOS = "${{ matrix.goos }}"
463465
$env:GOARCH = "${{ matrix.goarch }}"

0 commit comments

Comments
 (0)