build: disable cgo in builds

reuse-runner-2
TorchedSammy 2022-10-10 18:55:03 -04:00
parent 3ee2b03330
commit 0db7f96fd7
Signed by: sammyette
GPG Key ID: 904FC49417B44DCD
1 changed files with 2 additions and 2 deletions

View File

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