From edf8238af91b5c1ab56d6953078593c3e646bfaa Mon Sep 17 00:00:00 2001 From: Marius Date: Mon, 28 Nov 2022 22:33:52 +0100 Subject: [PATCH] ci: Disable CGO when building binaries --- scripts/build_funcs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/build_funcs.sh b/scripts/build_funcs.sh index 4fec442..50068ce 100755 --- a/scripts/build_funcs.sh +++ b/scripts/build_funcs.sh @@ -15,7 +15,7 @@ function compile { local dir="tusd_${os}_${arch}" rm -rf "$dir" mkdir -p "$dir" - GOOS=$os GOARCH=$arch go build \ + GOOS=$os GOARCH=$arch CGO_ENABLED=0 go build \ -trimpath \ -ldflags="-X github.com/tus/tusd/cmd/tusd/cli.VersionName=${version} -X github.com/tus/tusd/cmd/tusd/cli.GitCommit=${commit} -X 'github.com/tus/tusd/cmd/tusd/cli.BuildDate=$(date --utc)'" \ -o "$dir/tusd$ext" ./cmd/tusd/main.go