From 182e82b0f566f7f5c68746b10d1d18c2fe1f5518 Mon Sep 17 00:00:00 2001 From: Riccardo Montagnin Date: Fri, 15 Nov 2024 09:44:49 +0900 Subject: [PATCH] build: bump Go to 1.23 --- .github/workflows/lint.yml | 2 +- .github/workflows/test.yml | 10 +++++----- go.mod | 4 +--- shared.Dockerfile | 35 ----------------------------------- 4 files changed, 7 insertions(+), 44 deletions(-) delete mode 100644 shared.Dockerfile diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 00d878759..2b6222dd3 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -27,7 +27,7 @@ jobs: - name: Setup Go 🧰 uses: actions/setup-go@v5 with: - go-version: '1.22' + go-version: '1.23' - name: Setup GOPRIVATE 🛡️ run: git config --global url.https://$GH_ACCESS_TOKEN@github.com/.insteadOf https://github.com/ diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a10f69b99..d1707a0ff 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -21,7 +21,7 @@ jobs: - name: Setup Go 🧰 uses: actions/setup-go@v5 with: - go-version: '1.22' + go-version: '1.23' - name: Display go version 🛂 run: go version @@ -51,7 +51,7 @@ jobs: - name: Setup Go 🧰 uses: actions/setup-go@v5 with: - go-version: '1.22' + go-version: '1.23' - name: Setup GOPRIVATE 🛡️ run: git config --global url.https://$GH_ACCESS_TOKEN@github.com/.insteadOf https://github.com/ @@ -77,7 +77,7 @@ jobs: - name: Setup Go 🧰 uses: actions/setup-go@v5 with: - go-version: '1.22' + go-version: '1.23' - name: Setup GOPRIVATE 🛡️ run: git config --global url.https://$GH_ACCESS_TOKEN@github.com/.insteadOf https://github.com/ @@ -126,7 +126,7 @@ jobs: - name: Setup Go 🧰 uses: actions/setup-go@v5 with: - go-version: '1.22' + go-version: '1.23' - name: Setup GOPRIVATE 🛡️ run: git config --global url.https://$GH_ACCESS_TOKEN@github.com/.insteadOf https://github.com/ @@ -236,7 +236,7 @@ jobs: - name: Setup Go 🧰 uses: actions/setup-go@v5 with: - go-version: '1.22' + go-version: '1.23' - name: Setup GOPRIVATE 🛡️ run: git config --global url.https://$GH_ACCESS_TOKEN@github.com/.insteadOf https://github.com/ diff --git a/go.mod b/go.mod index e5f530bf4..c9ff2605d 100644 --- a/go.mod +++ b/go.mod @@ -1,8 +1,6 @@ module github.com/milkyway-labs/milkyway -go 1.22.7 - -toolchain go1.22.8 +go 1.23 require ( cosmossdk.io/api v0.7.6 diff --git a/shared.Dockerfile b/shared.Dockerfile deleted file mode 100644 index bb80b2077..000000000 --- a/shared.Dockerfile +++ /dev/null @@ -1,35 +0,0 @@ -FROM golang:1.22-bullseye AS go-builder - -# Install minimum necessary dependencies, build Cosmos SDK, remove packages -RUN apt update -RUN apt install -y curl git build-essential -# debug: for live editting in the image -RUN apt install -y vim - -WORKDIR /code -COPY . /code/ - -RUN LEDGER_ENABLED=false make build - -RUN cp /go/pkg/mod/github.com/\!cosm\!wasm/wasmvm@v*/internal/api/libwasmvm.`uname -m`.so /lib/libwasmvm.so - -FROM ubuntu:20.04 - -WORKDIR /root - -COPY --from=go-builder /code/build/milkywayd /usr/local/bin/milkywayd -COPY --from=go-builder /lib/libwasmvm.so /lib/libwasmvm.so - -# for new-metric setup -COPY --from=go-builder /code/contrib /root/contrib - -# rest server -EXPOSE 1317 -# grpc -EXPOSE 9090 -# tendermint p2p -EXPOSE 26656 -# tendermint rpc -EXPOSE 26657 - -CMD ["/usr/local/bin/milkywayd", "version"]