From c11c607eea3f814ffae5f31d0b47f2cda8a16dd5 Mon Sep 17 00:00:00 2001 From: Christoph Witzko <github@christophwitzko.com> Date: Fri, 20 Nov 2020 09:17:38 +0100 Subject: [PATCH] fix: static build --- .github/workflows/ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 953d57a..eacf001 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -50,6 +50,8 @@ jobs: gox -parallel 4 -osarch="linux/amd64 darwin/amd64 linux/arm windows/amd64" -ldflags="-extldflags '-static' -s -w -X github.com/go-semantic-release/files-updater-npm/pkg/updater.FUVERSION=${{steps.semrel.outputs.version}}" -output="bin/{{.Dir}}_v${{steps.semrel.outputs.version}}_{{.OS}}_{{.Arch}}" ./cmd/files-updater-npm/ cd bin/ && shasum -a 256 * > ./files-updater-npm_v${{steps.semrel.outputs.version}}_checksums.txt && cd - if: steps.semrel.outputs.version != '' + env: + CGO_ENABLED: 0 - run: ghr $(cat .ghr) bin/ if: steps.semrel.outputs.version != '' env: -- GitLab