浏览代码

Bump Go version

世界 1 年之前
父节点
当前提交
e2090923db
共有 2 个文件被更改,包括 23 次插入3 次删除
  1. 22 2
      .github/workflows/debug.yml
  2. 1 1
      .github/workflows/lint.yml

+ 22 - 2
.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:

+ 1 - 1
.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: