From 93840c4984a37731ccee086f3561b88a4f247283 Mon Sep 17 00:00:00 2001 From: Blagoj Atanasovski Date: Thu, 14 Mar 2024 07:02:34 +0100 Subject: [PATCH] Use go 1.21 in GitHub actions --- .github/workflows/build.yaml | 8 ++++---- .github/workflows/release.yaml | 4 ++-- go.mod | 4 +++- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 7cf59a5..eb8871e 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -26,10 +26,10 @@ jobs: msg=$(git show -s --format=%s) echo "head_commit_message=${msg}" >> $GITHUB_ENV - - name: Setup Go 1.20 + - name: Setup Go 1.21 uses: actions/setup-go@v2 with: - go-version: "1.20" + go-version: "1.21" - name: Cache Go modules uses: actions/cache@v2 @@ -142,10 +142,10 @@ jobs: - name: Checkout uses: actions/checkout@v2 - - name: Setup Go 1.20 + - name: Setup Go 1.21 uses: actions/setup-go@v2 with: - go-version: "1.20" + go-version: "1.21" - name: Login to GitHub Container Registry uses: docker/login-action@v1 diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 11a7488..b3e1a5f 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -20,10 +20,10 @@ jobs: - name: Checkout uses: actions/checkout@v2 - - name: Setup Go 1.20 + - name: Setup Go 1.21 uses: actions/setup-go@v2 with: - go-version: "1.20" + go-version: "1.21" - name: Cache Go modules uses: actions/cache@v2 diff --git a/go.mod b/go.mod index 34e2658..778ac5a 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,8 @@ module github.com/castai/egressd -go 1.21 +go 1.21.0 + +toolchain go1.21.6 require ( github.com/Code-Hex/go-generics-cache v1.3.1