From 785b7a1b025abc5244f0f4c60c508a4d4f9dabca Mon Sep 17 00:00:00 2001 From: Pierre Fenoll Date: Tue, 18 Jan 2022 10:30:36 +0100 Subject: [PATCH] Fix building static binaries of ghz Signed-off-by: Pierre Fenoll --- .github/workflows/release.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 7a663526..f4584461 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -44,10 +44,13 @@ jobs: shell: bash - name: Build ghz + env: + CGO_ENABLED: 0 run: | mkdir ./dist/ mkdir ./dist/${{ matrix.target }}/ go build -ldflags="-s -w -X 'main.version=${{ steps.get_tag_version.outputs.TAG_VERSION }}' -X 'main.commit=${{ github.sha }}' -X 'main.date=${{ steps.current-time.outputs.time }}'" -o ./dist/${{ matrix.target }}/ ./cmd/ghz/... + file ./dist/${{ matrix.target }}/ghz | grep -F ', statically linked,' - name: Build ghz-web env: