generated from dymensionxyz/rollapp
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci(binaries): add workflow and config to create mock binaries on rele…
…ase (#134)
- Loading branch information
1 parent
a34bc94
commit 794042b
Showing
3 changed files
with
234 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
--- | ||
name: Release Binary | ||
|
||
on: | ||
release: | ||
types: [created] | ||
|
||
permissions: write-all | ||
|
||
# This workflow creates a release using goreleaser | ||
# via the 'make release' command. | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
environment: release | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
check-latest: true | ||
go-version-file: go.mod | ||
|
||
- name: Setup release environment | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: |- | ||
echo 'GITHUB_TOKEN=${{secrets.GITHUB_TOKEN}}' > .release-env | ||
- name: Extract TM_VERSION | ||
run: echo "TM_VERSION=$(go list -m github.com/tendermint/tendermint | sed 's:.* ::')" >> $GITHUB_ENV | ||
|
||
- name: Extract BECH32_PREFIX | ||
run: echo BECH32_PREFIX=mock >> $GITHUB_ENV | ||
|
||
- name: Release publish | ||
run: make release |
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 |
---|---|---|
@@ -0,0 +1,152 @@ | ||
version: 2 | ||
before: | ||
hooks: | ||
- go mod download | ||
- go mod verify | ||
|
||
env: | ||
- GO111MODULE=on | ||
- BECH32_PREFIX=mock | ||
- BUILD_TAGS=cgo,netgo,ledger | ||
|
||
builds: | ||
- id: "rollappd-darwin" | ||
main: ./rollappd | ||
binary: rollappd | ||
env: | ||
- CGO_ENABLED=1 | ||
- CC=o64-clang | ||
- CXX=o64-clang++ | ||
goos: | ||
- darwin | ||
goarch: | ||
- amd64 | ||
flags: | ||
- -tags={{.Env.BUILD_TAGS}} | ||
ldflags: | ||
- -s -w | ||
- -X github.com/cosmos/cosmos-sdk/version.Name=dymension-rdk | ||
- -X github.com/cosmos/cosmos-sdk/version.AppName=rollapp-wasm | ||
- -X github.com/cosmos/cosmos-sdk/version.Version={{.Version}} | ||
- -X github.com/cosmos/cosmos-sdk/version.Commit={{.Commit}} | ||
- -X github.com/tendermint/tendermint/version.TMCoreSemVer={{.Env.TM_VERSION}} | ||
- -X github.com/dymensionxyz/rollapp-wasm/app.AccountAddressPrefix={{.Env.BECH32_PREFIX}} | ||
- -X github.com/dymensionxyz/dymension-rdk/x/rollappparams/types.Version={{.Commit}} | ||
- -X github.com/dymensionxyz/dymint/version.Commit={{.Commit}} | ||
- id: "rollappd-darwin-arm64" | ||
main: ./rollappd | ||
binary: rollappd | ||
env: | ||
- CGO_ENABLED=1 | ||
- CC=oa64-clang | ||
- CXX=oa64-clang++ | ||
goos: | ||
- darwin | ||
goarch: | ||
- arm64 | ||
flags: | ||
- -tags={{.Env.BUILD_TAGS}} | ||
ldflags: | ||
- -s -w | ||
- -X github.com/cosmos/cosmos-sdk/version.Name=dymension-rdk | ||
- -X github.com/cosmos/cosmos-sdk/version.AppName=rollapp-wasm | ||
- -X github.com/cosmos/cosmos-sdk/version.Version={{.Version}} | ||
- -X github.com/cosmos/cosmos-sdk/version.Commit={{.Commit}} | ||
- -X github.com/tendermint/tendermint/version.TMCoreSemVer={{.Env.TM_VERSION}} | ||
- -X github.com/dymensionxyz/rollapp-wasm/app.AccountAddressPrefix={{.Env.BECH32_PREFIX}} | ||
- -X github.com/dymensionxyz/dymension-rdk/x/rollappparams/types.Version={{.Commit}} | ||
- -X github.com/dymensionxyz/dymint/version.Commit={{.Commit}} | ||
- id: "rollappd-linux" | ||
main: ./rollappd | ||
binary: rollappd | ||
env: | ||
- CGO_ENABLED=1 | ||
- CC=x86_64-linux-gnu-gcc | ||
- CXX=x86_64-linux-gnu-g++ | ||
goos: | ||
- linux | ||
goarch: | ||
- amd64 | ||
flags: | ||
- -tags={{.Env.BUILD_TAGS}} | ||
ldflags: | ||
- -s -w | ||
- -X github.com/cosmos/cosmos-sdk/version.Name=dymension-rdk | ||
- -X github.com/cosmos/cosmos-sdk/version.AppName=rollapp-wasm | ||
- -X github.com/cosmos/cosmos-sdk/version.Version={{.Version}} | ||
- -X github.com/cosmos/cosmos-sdk/version.Commit={{.Commit}} | ||
- -X github.com/tendermint/tendermint/version.TMCoreSemVer={{.Env.TM_VERSION}} | ||
- -X github.com/dymensionxyz/rollapp-wasm/app.AccountAddressPrefix={{.Env.BECH32_PREFIX}} | ||
- -X github.com/dymensionxyz/dymension-rdk/x/rollappparams/types.Version={{.Commit}} | ||
- -X github.com/dymensionxyz/dymint/version.Commit={{.Commit}} | ||
- id: "rollappd-linux-arm64" | ||
main: ./rollappd | ||
binary: rollappd | ||
env: | ||
- CGO_ENABLED=1 | ||
- CC=aarch64-linux-gnu-gcc | ||
- CXX=aarch64-linux-gnu-g++ | ||
goos: | ||
- linux | ||
goarch: | ||
- arm64 | ||
flags: | ||
- -tags={{.Env.BUILD_TAGS}} | ||
ldflags: | ||
- -s -w | ||
- -X github.com/cosmos/cosmos-sdk/version.Name=dymension-rdk | ||
- -X github.com/cosmos/cosmos-sdk/version.AppName=rollapp-wasm | ||
- -X github.com/cosmos/cosmos-sdk/version.Version={{.Version}} | ||
- -X github.com/cosmos/cosmos-sdk/version.Commit={{.Commit}} | ||
- -X github.com/tendermint/tendermint/version.TMCoreSemVer={{.Env.TM_VERSION}} | ||
- -X github.com/dymensionxyz/rollapp-wasm/app.AccountAddressPrefix={{.Env.BECH32_PREFIX}} | ||
- -X github.com/dymensionxyz/dymension-rdk/x/rollappparams/types.Version={{.Commit}} | ||
- -X github.com/dymensionxyz/dymint/version.Commit={{.Commit}} | ||
# - id: "rollappd-windows" | ||
# main: ./rollappd | ||
# binary: rollappd | ||
# env: | ||
# - CGO_ENABLED=1 | ||
# - CC=x86_64-w64-mingw32-gcc | ||
# - CXX=x86_64-w64-mingw32-g++ | ||
# goos: | ||
# - windows | ||
# goarch: | ||
# - amd64 | ||
# flags: | ||
# - -tags={{.Env.BUILD_TAGS}} | ||
# - -buildmode=exe | ||
# ldflags: | ||
# - -s -w | ||
# - -X github.com/cosmos/cosmos-sdk/version.Name=dymension-rdk | ||
# - -X github.com/cosmos/cosmos-sdk/version.AppName=rollapp-wasm | ||
# - -X github.com/cosmos/cosmos-sdk/version.Version={{.Version}} | ||
# - -X github.com/cosmos/cosmos-sdk/version.BuildTags={{.Env.BUILD_TAGS}} | ||
# - -X github.com/cosmos/cosmos-sdk/version.Commit={{.Commit}} | ||
# - -X github.com/tendermint/tendermint/version.TMCoreSemVer={{.Env.TM_VERSION}} | ||
# - -X github.com/dymensionxyz/rollapp-wasm/app.AccountAddressPrefix={{.Env.BECH32_PREFIX}} | ||
# - -X github.com/dymensionxyz/dymension-rdk/x/rollappparams/types.Version={{.Commit}} | ||
# - -X github.com/dymensionxyz/dymint/version.Commit={{.Commit}} | ||
|
||
archives: | ||
- name_template: '{{ .ProjectName }}_{{- title .Os }}_{{ .Arch }}' | ||
format_overrides: | ||
- goos: windows | ||
format: zip | ||
builds: | ||
- rollappd-darwin | ||
- rollappd-darwin-arm64 | ||
# - rollappd-windows | ||
- rollappd-linux | ||
- rollappd-linux-arm64 | ||
|
||
checksum: | ||
name_template: 'checksums.txt' | ||
changelog: | ||
sort: asc | ||
filters: | ||
exclude: | ||
- '^docs:' | ||
- '^test:' | ||
snapshot: | ||
name_template: "{{ .Tag }}-next" |
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