Enable cgo for Linux desktop CI builds
This commit is contained in:
@@ -118,11 +118,15 @@ jobs:
|
|||||||
goos="$1"
|
goos="$1"
|
||||||
goarch="$2"
|
goarch="$2"
|
||||||
ext=""
|
ext=""
|
||||||
|
cgo_enabled=0
|
||||||
|
if [[ "${goos}" == "linux" ]]; then
|
||||||
|
cgo_enabled=1
|
||||||
|
fi
|
||||||
if [[ "${goos}" == "windows" ]]; then
|
if [[ "${goos}" == "windows" ]]; then
|
||||||
ext=".exe"
|
ext=".exe"
|
||||||
fi
|
fi
|
||||||
out="${DIST_DIR}/keepassgo-${goos}-${goarch}${ext}"
|
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
|
done
|
||||||
|
|
||||||
- name: Build APK
|
- name: Build APK
|
||||||
|
|||||||
Reference in New Issue
Block a user