Skip to content

Commit

Permalink
Fix building static binaries of ghz
Browse files Browse the repository at this point in the history
Signed-off-by: Pierre Fenoll <[email protected]>
  • Loading branch information
fenollp committed Jan 18, 2022
1 parent 4da5dc6 commit 785b7a1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 785b7a1

Please sign in to comment.