From 82f2518773675f3aeba0bde8ca877fccb291c25f Mon Sep 17 00:00:00 2001 From: vimystic <122659254+vimystic@users.noreply.github.com> Date: Mon, 7 Oct 2024 12:51:28 -0600 Subject: [PATCH] Add goreleaser yaml --- .goreleaser.yaml | 82 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 82 insertions(+) create mode 100644 .goreleaser.yaml diff --git a/.goreleaser.yaml b/.goreleaser.yaml new file mode 100644 index 0000000..d2ed2f7 --- /dev/null +++ b/.goreleaser.yaml @@ -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 \ No newline at end of file