Skip to content

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

Go: remove cgo when build cli (#16723)

Jin Hai2b95fa2ba451
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 34bafc87a8..c9eafb8971 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -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 }}"