Skip to content

Commit

Permalink
add goreleaser
Browse files Browse the repository at this point in the history
  • Loading branch information
liam.lai committed Nov 9, 2024
1 parent 9ceaed5 commit 608653c
Show file tree
Hide file tree
Showing 2 changed files with 77 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: goreleaser

on:
release:
types: [published]

permissions:
contents: write

jobs:
release:
uses: babylonlabs-io/.github/.github/workflows/reusable_go_releaser.yml@v0.7.0
secrets: inherit
64 changes: 64 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
version: 2
project_name: babylon

builds:
- id: babylond-linux-amd64
main: ./cmd/babylond/main.go
binary: babylond
hooks:
pre:
- sudo wget https://github.com/CosmWasm/wasmvm/releases/download/{{ .Env.COSMWASM_VERSION }}/libwasmvm.x86_64.so -O /lib/libwasmvm_muslc.x86_64.so
goos:
- linux
goarch:
- amd64
env:
- COSMWASM_VERSION=v2.1.3
- GO111MODULE=on
flags:
- -mod=readonly
- -trimpath
ldflags:
- -X github.com/cosmos/cosmos-sdk/version.Name=babylon
- -X github.com/cosmos/cosmos-sdk/version.AppName=babylond
- -X github.com/cosmos/cosmos-sdk/version.Version={{ .Version }}
- -X github.com/cosmos/cosmos-sdk/version.Commit={{ .Commit }}
- -X github.com/cosmos/cosmos-sdk/version.BuildTags=netgo,ledger,muslc,osusergo
- -w -s
- -linkmode=external
tags:
- netgo
- ledger
# - muslc
- osusergo

archives:
- id: zipped
builds:
- babylond-linux-amd64
name_template: "{{.ProjectName}}-{{ .Version }}-{{ .Os }}-{{ .Arch }}"
format: tar.gz
files:
- none*
- id: binaries
builds:
- babylond-linux-amd64
name_template: "{{.ProjectName}}-{{ .Version }}-{{ .Os }}-{{ .Arch }}"
format: binary
files:
- none*

checksum:
name_template: "{{ .ProjectName }}_{{ .Version }}_checksums.txt"
algorithm: sha256

release:
github:
owner: babylonlabs-io
name: babylon

# Docs: https://goreleaser.com/customization/changelog/
changelog:
disable: true

dist: dist

0 comments on commit 608653c

Please sign in to comment.