build: disable cgo in builds

reuse-runner-2
TorchedSammy 4 months ago
parent 3ee2b03330
commit 0db7f96fd7
Signed by: sammyette
GPG Key ID: 904FC49417B44DCD

@ -13,13 +13,13 @@ vars:
tasks:
default:
cmds:
- go build {{.GOFLAGS}}
- CGO_ENABLED=0 go build {{.GOFLAGS}}
vars:
GOFLAGS: '-ldflags "-s -w -X main.gitCommit=$(git rev-parse --short HEAD) -X main.gitBranch=$(git rev-parse --abbrev-ref HEAD)"'
build:
cmds:
- go build {{.GOFLAGS}}
- CGO_ENABLED=0 go build {{.GOFLAGS}}
install:
cmds:

Loading…
Cancel
Save