-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
853622b
commit 489ce1e
Showing
11 changed files
with
317 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,171 @@ | ||
project_name: seda | ||
project_name: seda-chain | ||
|
||
env: | ||
- CGO_ENABLED=1 | ||
# - GOOS=linux # for local m1 mac run | ||
|
||
before: | ||
hooks: | ||
- go mod download | ||
|
||
builds: | ||
- main: ./cmd/seda-chaind | ||
id: "seda-chaind" | ||
- id: seda-chaind-linux-amd64 | ||
main: ./cmd/seda-chaind/main.go | ||
binary: seda-chaind | ||
mod_timestamp: "{{ .CommitTimestamp }}" | ||
hooks: | ||
pre: | ||
- wget https://github.com/CosmWasm/wasmvm/releases/download/{{ .Env.COSMWASM_VERSION }}/libwasmvm_muslc.x86_64.a -O /usr/lib/x86_64-linux-gnu/libwasmvm_muslc.a | ||
goos: | ||
- linux | ||
goarch: | ||
- amd64 | ||
env: | ||
- CC=x86_64-linux-gnu-gcc | ||
flags: | ||
- -tags=badgerdb ledger netgo | ||
- -mod=readonly | ||
- -trimpath | ||
ldflags: | ||
- -s -w -X main.commit={{.Commit}} -X main.date={{ .CommitDate }} -X github.com/cosmos/cosmos-sdk/version.Name=seda-chain -X github.com/cosmos/cosmos-sdk/version.AppName=sedad-chain -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 -X github.com/cometbft/cometbft/version.TMCoreSemVer={{ .Env.COMET_VERSION }} | ||
- -X github.com/cosmos/cosmos-sdk/version.Name=seda-chain | ||
- -X github.com/cosmos/cosmos-sdk/version.AppName=seda-chaind | ||
- -X github.com/cosmos/cosmos-sdk/version.Version={{ .Version }} | ||
- -X github.com/cosmos/cosmos-sdk/version.Commit={{ .Commit }} | ||
- -X main.date={{ .CommitDate }} | ||
- -X github.com/cosmos/cosmos-sdk/version.BuildTags=netgo,ledger,muslc,osusergo | ||
- -w -s | ||
- -linkmode=external | ||
- -extldflags '-Wl,-z,muldefs -static -lm' | ||
tags: | ||
- netgo | ||
- ledger | ||
- muslc | ||
- osusergo | ||
# | ||
- id: seda-chaind-linux-arm64 | ||
main: ./cmd/seda-chaind/main.go | ||
binary: seda-chaind | ||
hooks: | ||
pre: | ||
- wget https://github.com/CosmWasm/wasmvm/releases/download/{{ .Env.COSMWASM_VERSION }}/libwasmvm_muslc.aarch64.a -O /usr/lib/aarch64-linux-gnu/libwasmvm_muslc.a | ||
goos: | ||
- linux | ||
goarch: | ||
- arm64 | ||
env: | ||
- CC=aarch64-linux-gnu-gcc | ||
flags: | ||
- -mod=readonly | ||
- -trimpath | ||
ldflags: | ||
- -X github.com/cosmos/cosmos-sdk/version.Name=seda-chain | ||
- -X github.com/cosmos/cosmos-sdk/version.AppName=seda-chaind | ||
- -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 | ||
- -extldflags '-Wl,-z,muldefs -static -lm' | ||
tags: | ||
- netgo | ||
- ledger | ||
- muslc | ||
- osusergo | ||
|
||
- id: seda-chaind-darwin-amd64 | ||
main: ./cmd/seda-chaind/main.go | ||
binary: seda-chaind | ||
hooks: | ||
pre: | ||
- wget https://github.com/CosmWasm/wasmvm/releases/download/{{ .Env.COSMWASM_VERSION }}/libwasmvmstatic_darwin.a -O /lib/libwasmvmstatic_darwin.a | ||
env: | ||
- CC=o64-clang | ||
- CGO_LDFLAGS=-L/lib | ||
goos: | ||
- darwin | ||
goarch: | ||
- amd64 | ||
# - arm64 # github only supports linux @ amd64 :'( | ||
flags: | ||
- -mod=readonly | ||
- -trimpath | ||
ldflags: | ||
- -X github.com/cosmos/cosmos-sdk/version.Name=seda-chain | ||
- -X github.com/cosmos/cosmos-sdk/version.AppName=seda-chaind | ||
- -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,static_wasm | ||
- -w -s | ||
- -linkmode=external | ||
tags: | ||
- netgo | ||
- ledger | ||
- static_wasm | ||
|
||
- id: seda-chaind-chaind-darwin-arm64 | ||
main: ./cmd/seda-chaind/main.go | ||
binary: seda-chaind | ||
hooks: | ||
pre: | ||
- wget https://github.com/CosmWasm/wasmvm/releases/download/{{ .Env.COSMWASM_VERSION }}/libwasmvmstatic_darwin.a -O /lib/libwasmvmstatic_darwin.a | ||
env: | ||
- CC=oa64-clang | ||
- CGO_LDFLAGS=-L/lib | ||
goos: | ||
- darwin | ||
goarch: | ||
- arm64 | ||
flags: | ||
- -mod=readonly | ||
- -trimpath | ||
ldflags: | ||
- -X github.com/cosmos/cosmos-sdk/version.Name=seda-chain | ||
- -X github.com/cosmos/cosmos-sdk/version.AppName=seda-chaind | ||
- -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,static_wasm | ||
- -w -s | ||
- -linkmode=external | ||
tags: | ||
- netgo | ||
- ledger | ||
- static_wasm | ||
|
||
|
||
universal_binaries: | ||
- id: seda-chaind-darwin-universal | ||
ids: | ||
- seda-chaind-darwin-amd64 | ||
- seda-chaind-darwin-arm64 | ||
replace: false | ||
|
||
archives: | ||
- id: tarball | ||
- id: zipped | ||
builds: | ||
- seda-chaind-linux-amd64 | ||
- seda-chaind-linux-arm64 | ||
# - seda-chaind-darwin-universal | ||
# - seda-chaind-darwin-amd64 | ||
# - seda-chaind-darwin-arm64 | ||
name_template: "{{.ProjectName}}-{{ .Version }}-{{ .Os }}-{{ .Arch }}" | ||
format: tar.gz | ||
wrap_in_directory: false # must not wrap into directory to support cosmwasm | ||
name_template: "{{ .Binary }}-v{{ .Version }}-{{ .Os }}-{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}" | ||
files: | ||
- LICENSE | ||
- README.md | ||
|
||
snapshot: | ||
name_template: SNAPSHOT-{{ .Commit }} | ||
- none* | ||
- id: binaries | ||
builds: | ||
- seda-chaind-linux-amd64 | ||
- seda-chaind-linux-arm64 | ||
# - seda-chaind-darwin-universal | ||
# - seda-chaind-darwin-amd64 | ||
# - seda-chaind-darwin-arm64 | ||
name_template: "{{.ProjectName}}-{{ .Version }}-{{ .Os }}-{{ .Arch }}" | ||
format: binary | ||
files: | ||
- none* | ||
|
||
checksum: | ||
name_template: SHA256SUMS-v{{.Version}}.txt | ||
name_template: "sha256sum.txt" | ||
algorithm: sha256 | ||
|
||
# Docs: https://goreleaser.com/customization/changelog/ | ||
changelog: | ||
skip: false | ||
skip: true | ||
|
||
# Docs: https://goreleaser.com/customization/release/ | ||
release: | ||
github: | ||
owner: seda-chain | ||
name: seda-chain | ||
replace_existing_draft: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.