diff --git a/.dockerignore b/.dockerignore index 48ff9d1a32..adc6255bfe 100644 --- a/.dockerignore +++ b/.dockerignore @@ -2,4 +2,5 @@ localnet package.json yarn.lock .github/ -.gitignore \ No newline at end of file +.gitignore +dist/** \ No newline at end of file diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index 7f88220c26..773ff28c4d 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -3,8 +3,8 @@ name: Publish Release on: push: tags: - - "v*.*.*" - + - "v*.*.*" + concurrency: group: publish-release cancel-in-progress: false diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 1995d6b43d..090108f3fa 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -62,7 +62,7 @@ builds: - -X github.com/zeta-chain/zetacore/common.CommitHash={{ .Env.COMMIT }} - -X github.com/zeta-chain/zetacore/common.BuildTime=={{ .Env.BUILDTIME }} - -X github.com/cosmos/cosmos-sdk/types.DBBackend=pebbledb -W + - id: "zetaclientd_testnet" main: ./cmd/zetaclientd binary: "zetaclientd_testnet-{{ .Os }}-{{ .Arch }}" @@ -121,6 +121,46 @@ W flags: *default_mock_mainnet_flags ldflags: *default_ldflags + - id: "zetacored_mainnet" + main: ./cmd/zetacored + binary: "zetacored_mainnet-{{ .Os }}-{{ .Arch }}" + env: + - 'CC={{ index .Env (print "CC_" .Os "_" .Arch) }}' + - 'CXX={{ index .Env (print "CXX_" .Os "_" .Arch) }}' + goos: + - linux + - darwin + - windows + goarch: + - arm64 + - amd64 + ignore: + - goos: windows + goarch: arm64 + flags: &default_mainnet_flags + - -tags=pebbledb,ledger,cgo + ldflags: *default_ldflags + + - id: "zetaclientd_mainnet" + main: ./cmd/zetaclientd + binary: "zetaclientd_mainnet-{{ .Os }}-{{ .Arch }}" + env: + - 'CC={{ index .Env (print "CC_" .Os "_" .Arch) }}' + - 'CXX={{ index .Env (print "CXX_" .Os "_" .Arch) }}' + goos: + - linux + # - darwin + # - windows + goarch: + - arm64 + - amd64 + ignore: + - goos: windows + goarch: arm64 + flags: *default_mainnet_flags + ldflags: *default_ldflags + + archives: - format: binary name_template: "{{ .Binary }}"