Skip to content

Commit

Permalink
Merge branch 'main' into ap/fix-sign-batch
Browse files Browse the repository at this point in the history
  • Loading branch information
julienrbrt committed Sep 13, 2022
2 parents 3b58ea5 + d074294 commit 17b6dbb
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -45,6 +47,9 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Set up QEMU
uses: docker/setup-qemu-action@v2

- name: Login to DockerHub
if: ${{ github.event_name != 'pull_request' }}
uses: docker/login-action@v2
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ WORKDIR /go/src/github.com/cosmos/cosmos-sdk
COPY . .

# install simapp, remove packages
RUN make build-linux
RUN make build


# Final image
Expand Down
10 changes: 7 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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) ./...
Expand All @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion x/staking/client/cli/query_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"strings"

"github.com/gogo/protobuf/proto"
"github.com/cosmos/gogoproto/proto"
tmcli "github.com/tendermint/tendermint/libs/cli"

"github.com/cosmos/cosmos-sdk/client/flags"
Expand Down
2 changes: 1 addition & 1 deletion x/staking/client/cli/tx_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"io"
"testing"

"github.com/gogo/protobuf/proto"
"github.com/cosmos/gogoproto/proto"
"github.com/spf13/pflag"
"github.com/stretchr/testify/require"
"github.com/stretchr/testify/suite"
Expand Down

0 comments on commit 17b6dbb

Please sign in to comment.