diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 10aee314c..17ba04f11 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -44,7 +44,7 @@ jobs: run: make build - name: Test & Coverage report creation 🧪 - run: make install test-unit stop-docker-test + run: make test-unit stop-docker-test - name: Upload coverage 📤 if: "env.GIT_DIFF != ''" diff --git a/Dockerfile b/Dockerfile index 26c29517f..32d3229bc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,11 +3,6 @@ RUN apk update && apk add --no-cache make git gcc libc-dev WORKDIR /go/src/github.com/forbole/bdjuno COPY . ./ RUN go mod download -ARG arch=x86_64 -# we use the same arch in the CI as a workaround since we don't use the wasm in the indexer -ADD https://github.com/CosmWasm/wasmvm/releases/download/v1.3.0/libwasmvm_muslc.${arch}.a /lib/libwasmvm_muslc.${arch}.a -# Copy the library you want to the final location that will be found by the linker flag `-lwasmvm_muslc` -RUN cp /lib/libwasmvm_muslc.${arch}.a /lib/libwasmvm_muslc.a RUN make build FROM --platform=$TARGETPLATFORM alpine:latest diff --git a/Makefile b/Makefile index 288efd978..cc65a43f1 100644 --- a/Makefile +++ b/Makefile @@ -23,6 +23,7 @@ BUILD_FLAGS := -tags muslc -ldflags '$(LD_FLAGS)' ############################################################################### build: go.sum +@wget https://github.com/CosmWasm/wasmvm/releases/download/v1.5.0/libwasmvm_muslc.x86_64.a -O /lib/libwasmvm_muslc.a ifeq ($(OS),Windows_NT) @echo "building bdjuno binary..." @go build -mod=readonly $(BUILD_FLAGS) -o build/bdjuno.exe ./cmd/bdjuno