mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-07-08 04:22:20 +08:00
Go: fix cgo build (#16724)
Signed-off-by: Jin Hai <haijin.chn@gmail.com>
This commit is contained in:
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
@@ -424,6 +424,7 @@ jobs:
|
||||
output="${DIST_DIR}/${CLI_NAME}-${RELEASE_TAG}-${{ matrix.goos }}-${{ matrix.goarch }}"
|
||||
echo "Building ${{ matrix.goos }}/${{ matrix.goarch }} -> ${output}"
|
||||
|
||||
CGO_ENABLED=0 \
|
||||
GOOS="${{ matrix.goos }}" \
|
||||
GOARCH="${{ matrix.goarch }}" \
|
||||
go build \
|
||||
@@ -458,6 +459,7 @@ jobs:
|
||||
exit 1
|
||||
}
|
||||
|
||||
$env:CGO_ENABLED = "0"
|
||||
$env:CC = $cc
|
||||
$env:GOOS = "${{ matrix.goos }}"
|
||||
$env:GOARCH = "${{ matrix.goarch }}"
|
||||
|
||||
Reference in New Issue
Block a user