chore: separate build flags (#13260)

* separate build flags

* legible
This commit is contained in:
Marko 2022-09-13 15:10:31 +02:00 committed by GitHub
parent a79eafa0b1
commit d07429425f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 3 deletions

View File

@ -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

View File

@ -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)