Created
August 31, 2021 13:18
-
-
Save developer-guy/07f8227edfb026de56f2d2f4ea2c7228 to your computer and use it in GitHub Desktop.
A sample .goreleaser.yaml with 3 builds
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
builds: | |
- id: linux-amd64 | |
binary: kink-linux-{{ .Arch }} | |
main: ./main.go | |
goos: | |
- linux | |
goarch: | |
- amd64 | |
ldflags: | |
- "{{ .Env.LDFLAGS }}" | |
no_unique_dist_dir: true | |
- id: darwin-amd64 | |
binary: kink-darwin-{{ .Arch }} | |
main: ./main.go | |
goos: | |
- darwin | |
goarch: | |
- amd64 | |
ldflags: | |
- "{{ .Env.LDFLAGS }}" | |
no_unique_dist_dir: true | |
- id: windows-amd64 | |
binary: kink-windows-{{ .Arch }} | |
main: ./main.go | |
goos: | |
- windows | |
goarch: | |
- amd64 | |
ldflags: | |
- -buildmode=exe | |
- "{{ .Env.LDFLAGS }}" | |
no_unique_dist_dir: true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment