ci: Disable CGO when building binaries

This commit is contained in:
Marius 2022-11-28 22:33:52 +01:00
parent aff352c413
commit edf8238af9
1 changed files with 1 additions and 1 deletions

View File

@ -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