Skip to content

Commit

Permalink
testing goreleaser
Browse files Browse the repository at this point in the history
  • Loading branch information
CharlieMc0 committed Sep 28, 2023
1 parent da1e47f commit caf88db
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 60 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-release-candidate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,14 @@ jobs:

- name: Create GitHub Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/v')
# if: startsWith(github.ref, 'refs/tags/v')
with:
token: ${{ secrets.PAT_GITHUB_SERVICE_ACCT }}
generate_release_notes: true

- name: Publish Release Files
env:
GITHUB_TOKEN: ${{ secrets.SECRET_GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.PAT_GITHUB_SERVICE_ACCT }}
run: |
touch .release-env
make release
Expand Down
116 changes: 58 additions & 58 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,63 +58,63 @@ builds:
- -X github.com/zeta-chain/zetacore/common.BuildTime=$(BUILDTIME)
- -X github.com/cosmos/cosmos-sdk/types.DBBackend=pebbledb

- id: "zetaclientd_testnet"
main: ./cmd/zetaclientd
binary: "zetaclientd_testnet_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
env:
- 'CC={{ index .Env (print "CC_" .Os "_" .Arch) }}'
- 'CXX={{ index .Env (print "CXX_" .Os "_" .Arch) }}'
goos:
- darwin
- linux
- windows
goarch:
- arm64
- amd64
ignore:
- goos: windows
goarch: arm64
flags: *default_testnet_flags
ldflags: *default_ldflags

- id: "zetacored_mock_mainnet"
main: ./cmd/zetacored
binary: "zetacored_mock_mainnet_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
env:
- 'CC={{ index .Env (print "CC_" .Os "_" .Arch) }}'
- 'CXX={{ index .Env (print "CXX_" .Os "_" .Arch) }}'
goos:
- darwin
- linux
- windows
goarch:
- arm64
- amd64
ignore:
- goos: windows
goarch: arm64
flags: &default_mock_mainnet_flags
- -tags=MOCK_MAINNET,pebbledb,ledger,cgo
ldflags: *default_ldflags

- id: "zetaclientd_mock_mainnet"
main: ./cmd/zetaclientd
binary: "zetaclientd_mock_mainnet_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
env:
- 'CC={{ index .Env (print "CC_" .Os "_" .Arch) }}'
- 'CXX={{ index .Env (print "CXX_" .Os "_" .Arch) }}'
goos:
- darwin
- linux
- windows
goarch:
- arm64
- amd64
ignore:
- goos: windows
goarch: arm64
flags: *default_mock_mainnet_flags
ldflags: *default_ldflags
# - id: "zetaclientd_testnet"
# main: ./cmd/zetaclientd
# binary: "zetaclientd_testnet_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
# env:
# - 'CC={{ index .Env (print "CC_" .Os "_" .Arch) }}'
# - 'CXX={{ index .Env (print "CXX_" .Os "_" .Arch) }}'
# goos:
# - darwin
# - linux
# - windows
# goarch:
# - arm64
# - amd64
# ignore:
# - goos: windows
# goarch: arm64
# flags: *default_testnet_flags
# ldflags: *default_ldflags

# - id: "zetacored_mock_mainnet"
# main: ./cmd/zetacored
# binary: "zetacored_mock_mainnet_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
# env:
# - 'CC={{ index .Env (print "CC_" .Os "_" .Arch) }}'
# - 'CXX={{ index .Env (print "CXX_" .Os "_" .Arch) }}'
# goos:
# - darwin
# - linux
# - windows
# goarch:
# - arm64
# - amd64
# ignore:
# - goos: windows
# goarch: arm64
# flags: &default_mock_mainnet_flags
# - -tags=MOCK_MAINNET,pebbledb,ledger,cgo
# ldflags: *default_ldflags

# - id: "zetaclientd_mock_mainnet"
# main: ./cmd/zetaclientd
# binary: "zetaclientd_mock_mainnet_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
# env:
# - 'CC={{ index .Env (print "CC_" .Os "_" .Arch) }}'
# - 'CXX={{ index .Env (print "CXX_" .Os "_" .Arch) }}'
# goos:
# - darwin
# - linux
# - windows
# goarch:
# - arm64
# - amd64
# ignore:
# - goos: windows
# goarch: arm64
# flags: *default_mock_mainnet_flags
# ldflags: *default_ldflags

archives:
- format: binary
Expand Down Expand Up @@ -199,4 +199,4 @@ release:
# - `replace`: replace existing notes
#
# Default is `keep-existing`.
mode: append
mode: keep-existing

0 comments on commit caf88db

Please sign in to comment.