Enable cgo for Linux desktop CI builds
ci / lint-test (push) Successful in 1m24s
ci / build (push) Failing after 2m31s

This commit is contained in:
Joe Julian
2026-04-03 20:31:34 -07:00
parent 02af840266
commit 02a60913a8
+5 -1
View File
@@ -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