Skip to content
Snippets Groups Projects
Commit 7c4f5036 authored by Christoph Witzko's avatar Christoph Witzko
Browse files

fix: static build

parent 0506d5b3
Branches
Tags v1.10.0
No related merge requests found
...@@ -50,6 +50,8 @@ jobs: ...@@ -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/commit-analyzer-cz/pkg/analyzer.CAVERSION=${{steps.semrel.outputs.version}}" -output="bin/{{.Dir}}_v${{steps.semrel.outputs.version}}_{{.OS}}_{{.Arch}}" ./cmd/commit-analyzer-cz/ gox -parallel 4 -osarch="linux/amd64 darwin/amd64 linux/arm windows/amd64" -ldflags="-extldflags '-static' -s -w -X github.com/go-semantic-release/commit-analyzer-cz/pkg/analyzer.CAVERSION=${{steps.semrel.outputs.version}}" -output="bin/{{.Dir}}_v${{steps.semrel.outputs.version}}_{{.OS}}_{{.Arch}}" ./cmd/commit-analyzer-cz/
cd bin/ && shasum -a 256 * > ./commit-analyzer-cz_v${{steps.semrel.outputs.version}}_checksums.txt && cd - cd bin/ && shasum -a 256 * > ./commit-analyzer-cz_v${{steps.semrel.outputs.version}}_checksums.txt && cd -
if: steps.semrel.outputs.version != '' if: steps.semrel.outputs.version != ''
env:
CGO_ENABLED: 0
- run: ghr $(cat .ghr) bin/ - run: ghr $(cat .ghr) bin/
if: steps.semrel.outputs.version != '' if: steps.semrel.outputs.version != ''
env: env:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment