Skip to content

Commit

Permalink
build: Updated cheqd-node/api package + Cosmos SDK bump (#557)
Browse files Browse the repository at this point in the history
  • Loading branch information
ankurdotb authored Mar 2, 2023
2 parents 49fc248 + 0308924 commit bd2dbb5
Show file tree
Hide file tree
Showing 26 changed files with 1,873 additions and 1,893 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ jobs:
with:
distribution: goreleaser
version: latest
args: build --clean --snapshot --id ubuntu-latest-amd64
args: build --clean --snapshot --single-target

- name: Store artifact
uses: actions/upload-artifact@v3
with:
name: cheqd-noded
path: dist/ubuntu-latest-amd64_linux_amd64_v1/cheqd-noded
path: dist/linux-amd64_linux_amd64_v1/cheqd-noded

build-docker:
name: "Docker image"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/cleanup-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ on:
description: 'Retain days'
required: true
type: string
default: 30
default: "30"
minimum_runs:
description: 'Minimum runs to keep for each workflow'
required: true
type: string
default: 0
default: "0"
delete_workflow_pattern:
description: 'Name/filename of workflow. Default is all.'
required: false
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ jobs:
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v4
# Only run GoReleaser if the commit is tagged with a version
if: startsWith( git tag --contains ${{ github.sha }} , 'v') == true
if: startsWith((git tag --contains ${{ github.sha }}), 'v')
with:
distribution: goreleaser
version: latest
Expand Down
7 changes: 2 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
### APP-SPECIFIC EXCLUSIONS ###

# Ignored directories
api/docs/cheqd/
api/docs/swagger-ui/
app/client/docs/cheqd/
app/client/docs/swagger-ui/
build/
dist/
**/network-config

# Ignored files

# Allowed files


### GENERAL EXCLUSIONS ###

### GitBook ###
Expand Down
33 changes: 27 additions & 6 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ before:
hooks:
- make clean
- make tidy
- make install
- make proto-gen
- make swagger

builds:
- id: ubuntu-latest-amd64
- id: linux-amd64
main: ./cmd/cheqd-noded
binary: cheqd-noded
targets:
Expand All @@ -32,14 +32,13 @@ builds:
- -X github.com/cosmos/cosmos-sdk/version.Commit={{ .Commit }}
- -X github.com/cosmos/cosmos-sdk/version.BuildTags=netgo,ledger,goleveldb

- id: ubuntu-latest-arm64
- id: linux-arm64
main: ./cmd/cheqd-noded
binary: cheqd-noded
targets:
- "linux_arm64"
hooks:
pre:
- sudo apt update && sudo apt install clang gcc-multilib g++-multilib -y
env:
- CGO_ENABLED=0
flags:
- -mod=readonly
- -tags="netgo ledger goleveldb"
Expand All @@ -52,9 +51,31 @@ builds:
- -X github.com/cosmos/cosmos-sdk/version.Commit={{ .Commit }}
- -X github.com/cosmos/cosmos-sdk/version.BuildTags=netgo,ledger,goleveldb

- id: darwin
env:
- CGO_ENABLED=0
main: ./cmd/cheqd-noded
binary: cheqd-noded
goos:
- darwin
goarch:
- amd64
- arm64
flags:
- -mod=readonly
- -tags="netgo ledger goleveldb"
- -trimpath
ldflags:
- -s -w
- -X github.com/cosmos/cosmos-sdk/version.Name=cheqd-noded
- -X github.com/cosmos/cosmos-sdk/version.AppName=cheqd-noded
- -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,goleveldb

archives:
- id: release-archives
rlcp: true
format: tar.gz
wrap_in_directory: false
name_template: "{{ .Binary }}-{{ .Version }}-{{ .Os }}-{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
Expand Down
5 changes: 2 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,13 @@ endif

build_tags += $(BUILD_TAGS)
build_tags := $(strip $(build_tags))

# process linker flags

empty :=
whitespace := $(empty) $(empty)
comma := ,
build_tags_comma_sep := $(subst $(whitespace),$(comma),$(build_tags))

# process linker flags

ldflags = -X github.com/cosmos/cosmos-sdk/version.Name=cheqd-noded \
-X github.com/cosmos/cosmos-sdk/version.AppName=cheqd-noded \
-X github.com/cosmos/cosmos-sdk/version.Version=$(VERSION) \
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Either the cheqd team, or one of your fellow node operators will be happy to off

Getting started as a node operator on the cheqd network [mainnet](https://explorer.cheqd.io) is as simple as...

1. Install [the latest stable release](https://github.com/cheqd/cheqd-node/releases/latest) of `cheqd-node` software (currently `v0.6.x`) on a hosting platform of your choice by [following the setup guide](https://docs.cheqd.io/node/docs/setup-and-configure).
1. Install [the latest stable release](https://github.com/cheqd/cheqd-node/releases/latest) of `cheqd-node` software (currently `v1.x.x`) on a hosting platform of your choice by [following the setup guide](https://docs.cheqd.io/node/docs/setup-and-configure).
2. Once you have acquired CHEQ tokens, [promote your node to a validator](https://docs.cheqd.io/node/docs/validator-guide)

If successfully configured, your node would become the latest validator on the cheqd mainnet. Welcome to the new digital ID revolution!
Expand Down
20 changes: 13 additions & 7 deletions api/cheqd/did/v2/query_grpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 13 additions & 7 deletions api/cheqd/did/v2/tx_grpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 13 additions & 7 deletions api/cheqd/resource/v2/query_grpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit bd2dbb5

Please sign in to comment.