From bf4de7e526c5f8da09a02603e35e9d72289d2999 Mon Sep 17 00:00:00 2001 From: Jonson Petard <41122242+greenhat616@users.noreply.github.com> Date: Tue, 3 Sep 2024 10:03:46 +0800 Subject: [PATCH] ci: update golang version --- .github/workflows/docker_push_latest.yml | 2 +- .github/workflows/go.yml | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/docker_push_latest.yml b/.github/workflows/docker_push_latest.yml index a59ad38..e8ebd73 100644 --- a/.github/workflows/docker_push_latest.yml +++ b/.github/workflows/docker_push_latest.yml @@ -24,7 +24,7 @@ jobs: uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: - go-version: '1.21' + go-version: '1.23' - name: Build run: mkdir -p ./temp && CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags '-s -w --extldflags "-static -fpic"' -o ./temp/linux_amd64/hitokoto_reviewer main.go - diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 28321e1..4450ea2 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -10,7 +10,7 @@ jobs: name: Test strategy: matrix: - go-version: [1.20.x] + go-version: [1.23.x] platform: [ubuntu-latest] runs-on: ${{ matrix.platform }} steps: @@ -47,7 +47,7 @@ jobs: name: Lint strategy: matrix: - go-version: [1.20.x] + go-version: [1.23.x] platform: [ubuntu-latest] runs-on: ${{ matrix.platform }} steps: @@ -67,7 +67,7 @@ jobs: name: Build strategy: matrix: - go-version: [1.20.x] + go-version: [1.23.x] platform: [ubuntu-latest] runs-on: ${{ matrix.platform }} steps: