Skip to content

Commit

Permalink
Setup goreleaser
Browse files Browse the repository at this point in the history
Signed-off-by: Yutaro Hayakawa <[email protected]>
  • Loading branch information
YutaroHayakawa committed May 6, 2024
1 parent bbdb543 commit 7c8e001
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,6 @@
# Go workspace file
go.work

goradvd/goradvd
cmd/

dist/
33 changes: 33 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
version: 1

builds:
- id: gora
env:
- CGO_ENABLED=0
goos:
- linux
goarch:
- amd64
main: ./cmd/gora
binary: gora

- id: gorad
env:
- CGO_ENABLED=0
goos:
- linux
goarch:
- amd64
main: ./cmd/gorad
binary: gorad


archives:
- format: tar.gz
# This name template makes the OS and Arch compatible with the results of `uname`.
name_template: >-
{{ .ProjectName }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end }}

0 comments on commit 7c8e001

Please sign in to comment.