From 69fac410030f4e4d17f3dbbe6aaf52c213e4fa34 Mon Sep 17 00:00:00 2001 From: Joe Julian Date: Fri, 3 Apr 2026 20:31:34 -0700 Subject: [PATCH] Enable cgo for Linux desktop CI builds --- .gitea/workflows/ci.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 84b956f..dd04dc7 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -118,11 +118,15 @@ jobs: goos="$1" goarch="$2" ext="" + cgo_enabled=0 + if [[ "${goos}" == "linux" ]]; then + cgo_enabled=1 + fi if [[ "${goos}" == "windows" ]]; then ext=".exe" fi out="${DIST_DIR}/keepassgo-${goos}-${goarch}${ext}" - GOOS="${goos}" GOARCH="${goarch}" CGO_ENABLED=0 go build -o "${out}" . + GOOS="${goos}" GOARCH="${goarch}" CGO_ENABLED="${cgo_enabled}" go build -o "${out}" . done - name: Build APK