From e2090923db572b412d0f5b295539aacf77fdb620 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=96=E7=95=8C?= Date: Wed, 7 Feb 2024 14:11:20 +0800 Subject: [PATCH] Bump Go version --- .github/workflows/debug.yml | 24 ++++++++++++++++++++++-- .github/workflows/lint.yml | 2 +- 2 files changed, 23 insertions(+), 3 deletions(-) diff --git a/.github/workflows/debug.yml b/.github/workflows/debug.yml index 9409d842..5ccfc35b 100644 --- a/.github/workflows/debug.yml +++ b/.github/workflows/debug.yml @@ -28,7 +28,7 @@ jobs: - name: Setup Go uses: actions/setup-go@v5 with: - go-version: ^1.21 + go-version: ^1.22 continue-on-error: true - name: Run Test run: | @@ -64,7 +64,7 @@ jobs: - name: Setup Go uses: actions/setup-go@v5 with: - go-version: ^1.20 + go-version: ~1.20 - name: Cache go module uses: actions/cache@v4 with: @@ -73,6 +73,26 @@ jobs: key: go120-${{ hashFiles('**/go.sum') }} - name: Run Test run: make ci_build + build_go121: + name: Debug build (Go 1.21) + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 + with: + fetch-depth: 0 + - name: Setup Go + uses: actions/setup-go@v5 + with: + go-version: ~1.21 + - name: Cache go module + uses: actions/cache@v4 + with: + path: | + ~/go/pkg/mod + key: go121-${{ hashFiles('**/go.sum') }} + - name: Run Test + run: make ci_build cross: strategy: matrix: diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index ab67a616..1cdafd35 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -28,7 +28,7 @@ jobs: - name: Setup Go uses: actions/setup-go@v4 with: - go-version: ^1.21 + go-version: ^1.22 - name: Setup Go uses: actions/setup-go@v5 with: