Go: remove cgo when build cli (#16723)

### Summary

Fix

Signed-off-by: Jin Hai <haijin.chn@gmail.com>
This commit is contained in:
Jin Hai
2026-07-07 21:05:07 +08:00
committed by GitHub
parent fe835fd19c
commit 2b95fa2ba4

View File

@@ -424,7 +424,6 @@ jobs:
output="${DIST_DIR}/${CLI_NAME}-${RELEASE_TAG}-${{ matrix.goos }}-${{ matrix.goarch }}"
echo "Building ${{ matrix.goos }}/${{ matrix.goarch }} -> ${output}"
CGO_ENABLED=1 \
GOOS="${{ matrix.goos }}" \
GOARCH="${{ matrix.goarch }}" \
go build \
@@ -459,7 +458,6 @@ jobs:
exit 1
}
$env:CGO_ENABLED = "1"
$env:CC = $cc
$env:GOOS = "${{ matrix.goos }}"
$env:GOARCH = "${{ matrix.goarch }}"