From c4b02dc8d4ff66aec64af23175b7a297ef09bd70 Mon Sep 17 00:00:00 2001 From: Ivan Krutov Date: Wed, 29 Jun 2022 18:23:46 +0300 Subject: [PATCH] Building all binaries with CGO_ENABLED=0 --- ci/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/build.sh b/ci/build.sh index c0894b7b..3514c1f7 100755 --- a/ci/build.sh +++ b/ci/build.sh @@ -2,4 +2,4 @@ export GO111MODULE="on" go install github.com/mitchellh/gox@latest # cross compile -gox -os "linux darwin windows" -arch "amd64" -osarch="darwin/arm64" -osarch="darwin/arm64" -osarch="linux/arm64" -osarch="windows/386" -output "dist/{{.Dir}}_{{.OS}}_{{.Arch}}" -ldflags "-X main.buildStamp=`date -u '+%Y-%m-%d_%I:%M:%S%p'` -X main.gitRevision=`git describe --tags || git rev-parse HEAD` -s -w" +CGO_ENABLED=0 gox -os "linux darwin windows" -arch "amd64" -osarch="darwin/arm64" -osarch="darwin/arm64" -osarch="linux/arm64" -osarch="windows/386" -output "dist/{{.Dir}}_{{.OS}}_{{.Arch}}" -ldflags "-X main.buildStamp=`date -u '+%Y-%m-%d_%I:%M:%S%p'` -X main.gitRevision=`git describe --tags || git rev-parse HEAD` -s -w"