Skip to content

Commit

Permalink
fix: use static builds in go releaser (kaytu-io#207)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mahanmmi authored and ADorigi committed Jun 26, 2024
1 parent 66be4b7 commit 7dd0788
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,26 @@ builds:
env:
- CC=/usr/bin/musl-gcc
main: ./main.go
- id: darwin
- id: darwin_amd64
binary: kaytu
ldflags:
- -s -w -linkmode external -extldflags '-static' -X github.com/{{ .Env.REPOSITORY_OWNER }}/{{ .Env.REPOSITORY_NAME }}/pkg/version.VERSION={{ .Version }}
goos:
- darwin
goarch:
- amd64
- arm64
env:
- CC=/usr/bin/musl-gcc
main: ./main.go
- id: darwin_arm64
binary: kaytu
ldflags:
- -s -w -X github.com/{{ .Env.REPOSITORY_OWNER }}/{{ .Env.REPOSITORY_NAME }}/pkg/version.VERSION={{ .Version }}
goos:
- darwin
goarch:
- arm64
main: ./main.go
- id: windows
binary: kaytu
ldflags:
Expand Down

0 comments on commit 7dd0788

Please sign in to comment.