Skip to content

Commit

Permalink
Add goreleaser yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
vimystic committed Oct 7, 2024
1 parent 6ef8901 commit 82f2518
Showing 1 changed file with 82 additions and 0 deletions.
82 changes: 82 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
project_name: Heighliner

builds:
- id: darwin-amd64
main: ./main.go
binary: heighliner
goos:
- darwin
goarch:
- amd64
env:
- CC=o64-clang
- CXX=o64-clang++
flags:
- -mod=readonly
ldflags:
- -s -w -X github.com/cosmos/heighliner/v1/cmd.Version={{ .Tag }}
- id: darwin-arm64
main: ./main.go
binary: heighliner
goos:
- darwin
goarch:
- arm64
env:
- CC=oa64-clang
- CXX=oa64-clang++
flags:
- -mod=readonly
ldflags:
- -s -w -X github.com/cosmos/heighliner/v1/cmd.Version={{ .Tag }}
- id: linux-amd64
main: ./main.go
binary: heighliner
goos:
- linux
goarch:
- amd64
env:
- CC=x86_64-linux-gnu-gcc
- CXX=x86_64-linux-gnu-g++
flags:
- -mod=readonly
ldflags:
- -s -w -X github.com/cosmos/heighliner/v1/cmd.Version={{ .Tag }}
- id: linux-arm64
main: ./main.go
binary: heighliner
goos:
- linux
goarch:
- arm64
env:
- CC=aarch64-linux-gnu-gcc
- CXX=aarch64-linux-gnu-g++
flags:
- -mod=readonly
ldflags:
- -s -w -X github.com/cosmos/heighliner/v1/cmd.Version={{ .Tag }}

archives:
- id: golang-cross
builds:
- darwin-amd64
- darwin-arm64
- linux-amd64
- linux-arm64
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
format: tar.gz
wrap_in_directory: true

checksum:
name_template: SHA256SUMS-{{.Version}}.txt
algorithm: sha256

release:
prerelease: auto
draft: true

before:
hooks:
- cat chains/* chains.yaml

0 comments on commit 82f2518

Please sign in to comment.