parent
a79eafa0b1
commit
d07429425f
|
@ -3,6 +3,8 @@ name: Build & Push
|
|||
# and pushes the image to https://hub.docker.com/r/interchainio/simapp/tags
|
||||
on:
|
||||
pull_request:
|
||||
paths:
|
||||
- "Dockerfile"
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
|
10
Makefile
10
Makefile
|
@ -126,8 +126,12 @@ include contrib/devtools/Makefile
|
|||
BUILD_TARGETS := build install
|
||||
|
||||
build: BUILD_ARGS=-o $(BUILDDIR)/
|
||||
build-linux:
|
||||
GOOS=linux GOARCH=$(if $(findstring aarch64,$(shell uname -m)) || $(findstring arm64,$(shell uname -m)),arm64,amd64) LEDGER_ENABLED=false $(MAKE) build
|
||||
|
||||
build-linux-amd64:
|
||||
GOOS=linux GOARCH=amd64 LEDGER_ENABLED=false $(MAKE) build
|
||||
|
||||
build-linux-arm64:
|
||||
GOOS=linux GOARCH=arm64 LEDGER_ENABLED=false $(MAKE) build
|
||||
|
||||
$(BUILD_TARGETS): go.sum $(BUILDDIR)/
|
||||
cd ${CURRENT_DIR}/simapp && go $@ -mod=readonly $(BUILD_FLAGS) $(BUILD_ARGS) ./...
|
||||
|
@ -138,7 +142,7 @@ $(BUILDDIR)/:
|
|||
cosmovisor:
|
||||
$(MAKE) -C cosmovisor cosmovisor
|
||||
|
||||
.PHONY: build build-linux cosmovisor
|
||||
.PHONY: build build-linux-amd64 build-linux-arm64 cosmovisor
|
||||
|
||||
|
||||
mocks: $(MOCKS_DIR)
|
||||
|
|
Loading…
Reference in New Issue