Skip to content

Commit

Permalink
fix: use static builds in go releaser (#207)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mahanmmi committed Jun 17, 2024
1 parent 249a3b7 commit 2f80f0c
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 2f80f0c

Please sign in to comment.