Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ jobs:
buf generate --template proto/buf.gen.swagger.yaml --verbose
./ignite version
./ignite generate openapi --yes
./ignite chain build --clear-cache --skip-proto --release --release.prefix ${{ steps.vars.outputs.tarball_prefix }} -y -t linux:amd64 #-t darwin:amd64 -t darwin:arm64 -y
./ignite chain build --build.tags "ledger" --clear-cache --skip-proto --release --release.prefix ${{ steps.vars.outputs.tarball_prefix }} -y -t linux:amd64 #-t darwin:amd64 -t darwin:arm64 -y
env:
DO_NOT_TRACK: 1
GOFLAGS: "-trimpath -buildvcs=false"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/systemtests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:

- name: Build Chain
run: |
./ignite chain build -y -t linux:amd64
./ignite chain build --build.tags "ledger" -y -t linux:amd64
env:
DO_NOT_TRACK: 1
GOFLAGS: "-buildvcs=false"
Expand Down
21 changes: 13 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ BUILD_DIR ?= build
RELEASE_DIR ?= release
GOPROXY ?= https://proxy.golang.org,direct

# Build tags for conditional compilation
BUILD_TAGS ?= ledger

CHAIN_BUILD ?= chain build $(if $(BUILD_TAGS),--build.tags "$(BUILD_TAGS)",)

module_version = $(strip $(shell EMSDK_QUIET=1 ${GO} list -m -f '{{.Version}}' $1 | tail -n 1))
IGNITE_INSTALL_SCRIPT ?= https://get.ignite.com/cli!

Expand Down Expand Up @@ -86,35 +91,35 @@ build-proto: clean-proto $(PROTO_SRC)
${BUF} generate --template proto/buf.gen.swagger.yaml --verbose
${IGNITE} generate openapi --yes --enable-proto-vendor --clear-cache

build: build/lumerad
build: ${BUILD_DIR}/lumerad

go.sum: go.mod
@echo "Verifying and tidying go modules..."
GOPROXY=${GOPROXY} ${GO} mod verify
GOPROXY=${GOPROXY} ${GO} mod tidy

build/lumerad: $(GO_SRC) go.sum Makefile
${BUILD_DIR}/lumerad: $(GO_SRC) go.sum Makefile
@echo "Building lumerad binary..."
@mkdir -p ${BUILD_DIR}
${BUF} generate --template proto/buf.gen.gogo.yaml --verbose
GOFLAGS=${GOFLAGS} ${IGNITE} chain build -t linux:amd64 --skip-proto --output ${BUILD_DIR}/
GOFLAGS=${GOFLAGS} ${IGNITE} ${CHAIN_BUILD} -t linux:amd64 --skip-proto --output ${BUILD_DIR}/
chmod +x $(BUILD_DIR)/lumerad

build-debug: build-debug/lumerad
build-debug: ${BUILD_DIR}/debug/lumerad

build-debug/lumerad: $(GO_SRC) go.sum Makefile
${BUILD_DIR}/debug/lumerad: $(GO_SRC) go.sum Makefile
@echo "Building lumerad debug binary..."
@mkdir -p ${BUILD_DIR}
${IGNITE} chain build -t linux:amd64 --skip-proto --debug -v --output ${BUILD_DIR}/
chmod +x $(BUILD_DIR)/lumerad
${IGNITE} ${CHAIN_BUILD} -t linux:amd64 --skip-proto --debug -v --output ${BUILD_DIR}/debug/
chmod +x $(BUILD_DIR)/debug/lumerad

release:
@echo "Creating release with ignite..."
@mkdir -p ${RELEASE_DIR}
${BUF} generate --template proto/buf.gen.gogo.yaml --verbose
${BUF} generate --template proto/buf.gen.swagger.yaml --verbose
${IGNITE} generate openapi --yes --enable-proto-vendor --clear-cache
CGO_LDFLAGS="${RELEASE_CGO_LDFLAGS}" ${IGNITE} chain build -t linux:amd64 --skip-proto --release -v --output ${RELEASE_DIR}/
CGO_LDFLAGS="${RELEASE_CGO_LDFLAGS}" ${IGNITE} ${CHAIN_BUILD} -t linux:amd64 --skip-proto --release -v --output ${RELEASE_DIR}/
@echo "Release created in [${RELEASE_DIR}/] directory."

###################################################
Expand Down
8 changes: 4 additions & 4 deletions buf.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ deps:
commit: 04467658e59e44bbb22fe568206e1f70
digest: b5:8058c0aadbee8c9af67a9cefe86492c6c0b0bd5b4526b0ec820507b91fc9b0b5efbebca97331854576d2d279b0b3f5ed6a7abb0640cb640c4186532239c48fc4
- name: buf.build/cosmos/cosmos-sdk
commit: 650cd9ad7f7a468e8e19975269958658
digest: b5:652a0cd9aa3c220bb12b558f29b30ca5c248b994420472c9c2a54eed3d33356b1307e51687c1909ea4f535a2a1e180895b8cda83b58a4697003009d17fdbc154
commit: 65fa41963e6a41dd95a35934239029df
digest: b5:45c2788f1c8ca1c0e72f643d51dba37c3b25d113ee166277cd60dfd49404e713a178e177beaa7d6d016f3853722d77f8fbf40e9444e173cd3d89754d39ca0427
- name: buf.build/cosmos/gogo-proto
commit: 88ef6483f90f478fb938c37dde52ece3
digest: b5:f0c69202c9bca9672dc72a9737ea9bc83744daaed2b3da77e3a95b0e53b86dee76b5a7405b993181d6c863fd64afaca0976a302f700d6c4912eb1692a1782c0a
Expand All @@ -23,5 +23,5 @@ deps:
commit: 004180b77378443887d3b55cabc00384
digest: b5:e8f475fe3330f31f5fd86ac689093bcd274e19611a09db91f41d637cb9197881ce89882b94d13a58738e53c91c6e4bae7dc1feba85f590164c975a89e25115dc
- name: buf.build/protocolbuffers/wellknowntypes
commit: 4e1ccfa6827947beb55974645a315b8d
digest: b5:eb5228b1abd02064d6ff0248918500c1ec1ce7df69126af3f220c0b67d81ff45bdf9f016a8e66cd9c1e534f18afc6d8e090d400604c5331d551a68d05f7e7be9
commit: 9d16d599a978406980f6e2f081331a93
digest: b5:dd06e497a5c52f5ddf6ec02b3c7d289cc6c0432093fc2f6bf7a4fb5fae786c3e4c893e55d2759ffb6833268daf3de0bce303a406fed15725790528f2c27dc219
2 changes: 1 addition & 1 deletion docs/static/openapi.yml

Large diffs are not rendered by default.

Loading