Skip to content

Instantly share code, notes, and snippets.

@developer-guy
Created August 31, 2021 13:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save developer-guy/07f8227edfb026de56f2d2f4ea2c7228 to your computer and use it in GitHub Desktop.
Save developer-guy/07f8227edfb026de56f2d2f4ea2c7228 to your computer and use it in GitHub Desktop.
A sample .goreleaser.yaml with 3 builds
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