From 9436bc8c7b7383b5f9a538132f42ba881f2a07eb Mon Sep 17 00:00:00 2001 From: CharlieM <31941002+CharlieMc0@users.noreply.github.com> Date: Mon, 16 Oct 2023 12:57:03 -0700 Subject: [PATCH 1/6] Added mainnet builds to goreleaser --- .dockerignore | 4 +++- .goreleaser.yaml | 40 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+), 1 deletion(-) diff --git a/.dockerignore b/.dockerignore index 48ff9d1a32..c239e17e46 100644 --- a/.dockerignore +++ b/.dockerignore @@ -2,4 +2,6 @@ localnet package.json yarn.lock .github/ -.gitignore \ No newline at end of file +.gitignore +dist/** +``` \ No newline at end of file diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 1995d6b43d..fdd2745ba7 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -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=MAINNET,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 }}" From b7f0bf18d373cab55f3d7087de70c66f59d57bf0 Mon Sep 17 00:00:00 2001 From: CharlieM <31941002+CharlieMc0@users.noreply.github.com> Date: Mon, 16 Oct 2023 12:59:37 -0700 Subject: [PATCH 2/6] fixed mainnet build tags --- .dockerignore | 3 +-- .goreleaser.yaml | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.dockerignore b/.dockerignore index c239e17e46..adc6255bfe 100644 --- a/.dockerignore +++ b/.dockerignore @@ -3,5 +3,4 @@ package.json yarn.lock .github/ .gitignore -dist/** -``` \ No newline at end of file +dist/** \ No newline at end of file diff --git a/.goreleaser.yaml b/.goreleaser.yaml index fdd2745ba7..47b2d28bf7 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -138,7 +138,7 @@ W - goos: windows goarch: arm64 flags: &default_mainnet_flags - - -tags=MAINNET,pebbledb,ledger,cgo + - -tags=pebbledb,ledger,cgo ldflags: *default_ldflags - id: "zetaclientd_mainnet" From f62141901d02a298dd00ed3a20368ffe6cfe0362 Mon Sep 17 00:00:00 2001 From: CharlieM <31941002+CharlieMc0@users.noreply.github.com> Date: Mon, 16 Oct 2023 13:01:06 -0700 Subject: [PATCH 3/6] testing ci --- .github/workflows/publish-release.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index 7f88220c26..8449fa0173 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -4,6 +4,8 @@ on: push: tags: - "v*.*.*" + branch: + - ci-mainnet-builds concurrency: group: publish-release From 541a3ecf3e7f171aca651f665fbc0b450b6537c7 Mon Sep 17 00:00:00 2001 From: CharlieM <31941002+CharlieMc0@users.noreply.github.com> Date: Mon, 16 Oct 2023 13:01:25 -0700 Subject: [PATCH 4/6] testing ci --- .goreleaser.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 47b2d28bf7..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 }}" From 718f5e085455d112f4a68943537c249e31da6aa5 Mon Sep 17 00:00:00 2001 From: CharlieM <31941002+CharlieMc0@users.noreply.github.com> Date: Mon, 16 Oct 2023 13:02:29 -0700 Subject: [PATCH 5/6] testing ci --- .github/workflows/publish-release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index 8449fa0173..a07828bd70 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -3,8 +3,8 @@ name: Publish Release on: push: tags: - - "v*.*.*" - branch: + - "v*.*.*" + branches: - ci-mainnet-builds concurrency: From d8a8611d486e3f66b5ad5361b9aac0870e16635b Mon Sep 17 00:00:00 2001 From: CharlieM <31941002+CharlieMc0@users.noreply.github.com> Date: Mon, 16 Oct 2023 13:04:11 -0700 Subject: [PATCH 6/6] removed test branch trigger from workflow --- .github/workflows/publish-release.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index a07828bd70..773ff28c4d 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -4,9 +4,7 @@ on: push: tags: - "v*.*.*" - branches: - - ci-mainnet-builds - + concurrency: group: publish-release cancel-in-progress: false