Skip to content

Commit

Permalink
ci: bump to golang v1.21 (#1698)
Browse files Browse the repository at this point in the history
* feat: bump to golang v1.21

* ci: bump golang cross version to 1.21.5

* fix: osxcross directory changed

* Update CHANGELOG.md

Run markdown linter on changelog.md
  • Loading branch information
k-yang committed Dec 22, 2023
1 parent 27ad4e7 commit c381323
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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)

- name: golangci-lint
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

- name: Run all integration tests.
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/sims.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

- name: Run all unit tests.
Expand All @@ -30,9 +30,9 @@ jobs:
- uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version: 1.19
go-version: 1.21

- name: Build the nibid binary
run: make build
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.19 AS builder
FROM golang:1.21 AS builder

WORKDIR /nibiru

Expand Down
2 changes: 1 addition & 1 deletion contrib/docker/chaosnet.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.19 AS builder
FROM golang:1.21 AS builder

WORKDIR /nibiru

Expand Down
6 changes: 3 additions & 3 deletions contrib/docker/goreleaser.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM golang:1.19 AS builder
FROM golang:1.21 AS builder

WORKDIR /root
COPY dist/ /root/
COPY ./dist/ /root/

ARG TARGETARCH
RUN if [ "${TARGETARCH}" = "arm64" ]; then \
Expand All @@ -10,7 +10,7 @@ RUN if [ "${TARGETARCH}" = "arm64" ]; then \
cp linux_linux_amd64_v1/nibid /root/nibid; \
fi

FROM alpine
FROM alpine:latest

WORKDIR /root
RUN apk --no-cache add ca-certificates
Expand Down
5 changes: 2 additions & 3 deletions contrib/make/release.mk
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
###############################################################################

PACKAGE_NAME := github.com/NibiruChain/nibiru
GOLANG_CROSS_VERSION ?= v1.19.4
GOLANG_CROSS_VERSION ?= v1.21.5

release:
docker run \
Expand All @@ -24,6 +24,5 @@ release-snapshot:
-v "$(CURDIR)":/go/src/$(PACKAGE_NAME) \
-w /go/src/$(PACKAGE_NAME) \
-e CGO_ENABLED=1 \
-e GITHUB_TOKEN=${GITHUB_TOKEN} \
goreleaser/goreleaser-cross:${GOLANG_CROSS_VERSION} \
release --rm-dist --snapshot
release --clean --snapshot

0 comments on commit c381323

Please sign in to comment.