From c41df2b88bd9aaaabacdc782a421524732248087 Mon Sep 17 00:00:00 2001 From: Kevin Yang <5478483+k-yang@users.noreply.github.com> Date: Wed, 6 Dec 2023 17:40:05 -0600 Subject: [PATCH] ci: bump to golang v1.21 --- .github/workflows/golangci-lint.yml | 2 +- .github/workflows/integration-tests.yml | 2 +- .github/workflows/sims.yml | 4 ++-- .github/workflows/unit-tests.yml | 4 ++-- Dockerfile | 2 +- contrib/docker/chaosnet.Dockerfile | 2 +- contrib/docker/goreleaser.Dockerfile | 2 +- contrib/make/release.mk | 2 +- 8 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index 1d45936100..4d75728be7 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -25,7 +25,7 @@ jobs: - uses: actions/setup-go@v4 with: - go-version: 1.19 + go-version: 1.21 cache: false # the golangci-lint action already caches for us (https://github.com/golangci/golangci-lint-action#performance) # Use GitHub actions output paramters to get go paths. For more info, see diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml index 40c9f78d3b..43b4c6e0ea 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/integration-tests.yml @@ -24,7 +24,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v4 with: - go-version: 1.19 + go-version: 1.21 cache: true # Use GitHub actions output paramters to get go paths. For more info, see diff --git a/.github/workflows/sims.yml b/.github/workflows/sims.yml index afa2c6df0e..fa25234ac9 100644 --- a/.github/workflows/sims.yml +++ b/.github/workflows/sims.yml @@ -11,7 +11,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-go@v4 with: - go-version: 1.19 + go-version: 1.21 cache: true - uses: actions/cache@v3 with: @@ -33,7 +33,7 @@ jobs: go.sum - uses: actions/setup-go@v4 with: - go-version: 1.19 + go-version: 1.21 cache: true if: env.GIT_DIFF - uses: actions/cache@v3 diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index a484450be3..9e9ac43295 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -18,7 +18,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v4 with: - go-version: 1.19 + go-version: 1.21 cache: true # Use GitHub actions output paramters to get go paths. For more info, see @@ -52,7 +52,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v4 with: - go-version: 1.19 + go-version: 1.21 - name: Build the nibid binary run: make build diff --git a/Dockerfile b/Dockerfile index 03afeba752..f97963d7e9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.19 AS builder +FROM golang:1.21 AS builder WORKDIR /nibiru diff --git a/contrib/docker/chaosnet.Dockerfile b/contrib/docker/chaosnet.Dockerfile index d5a94e1944..0111f457da 100644 --- a/contrib/docker/chaosnet.Dockerfile +++ b/contrib/docker/chaosnet.Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.19 AS builder +FROM golang:1.21 AS builder WORKDIR /nibiru diff --git a/contrib/docker/goreleaser.Dockerfile b/contrib/docker/goreleaser.Dockerfile index 2b1e9b7d1b..6141c9aaab 100644 --- a/contrib/docker/goreleaser.Dockerfile +++ b/contrib/docker/goreleaser.Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.19 AS builder +FROM golang:1.21 AS builder WORKDIR /root COPY dist/ /root/ diff --git a/contrib/make/release.mk b/contrib/make/release.mk index 626a4d5cb9..2d55d75bc7 100644 --- a/contrib/make/release.mk +++ b/contrib/make/release.mk @@ -3,7 +3,7 @@ ############################################################################### PACKAGE_NAME := github.com/NibiruChain/nibiru -GOLANG_CROSS_VERSION ?= v1.19.4 +GOLANG_CROSS_VERSION ?= v1.21.4 release: docker run \