Skip to content

Commit 9dd4c06

Browse files
fix: static build
1 parent 9d2d6ab commit 9dd4c06

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ jobs:
5050
gox -parallel 4 -osarch="linux/amd64 darwin/amd64 linux/arm windows/amd64" -ldflags="-extldflags '-static' -s -w -X github.com/go-semantic-release/condition-gitlab/pkg/condition.CIVERSION=${{steps.semrel.outputs.version}}" -output="bin/{{.Dir}}_v${{steps.semrel.outputs.version}}_{{.OS}}_{{.Arch}}" ./cmd/condition-gitlab/
5151
cd bin/ && shasum -a 256 * > ./condition-gitlab_v${{steps.semrel.outputs.version}}_checksums.txt && cd -
5252
if: steps.semrel.outputs.version != ''
53+
env:
54+
CGO_ENABLED: 0
5355
- run: ghr $(cat .ghr) bin/
5456
if: steps.semrel.outputs.version != ''
5557
env:

0 commit comments

Comments
 (0)