Skip to content

Commit bf612b4

Browse files
author
Ubuntu
committed
fix:github工作流go版本升级
1 parent 5d7ee9e commit bf612b4

3 files changed

Lines changed: 9 additions & 4 deletions

File tree

.github/workflows/ci.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,11 @@ jobs:
1717
- name: Set up Go
1818
uses: actions/setup-go@v6
1919
with:
20-
go-version: '>=1.25'
20+
go-version: '1.26.x'
21+
go-version-file: 'go.mod'
2122
cache: true
2223

24+
2325
- name: Verify dependencies
2426
run: |
2527
go mod tidy
@@ -45,7 +47,9 @@ jobs:
4547
- name: Set up Go
4648
uses: actions/setup-go@v6
4749
with:
48-
go-version: '1.26'
50+
go-version: '1.26.x'
51+
go-version-file: 'go.mod'
52+
cache: true
4953

5054
- name: golangci-lint
5155
uses: golangci/golangci-lint-action@v9

.github/workflows/release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ jobs:
1717
- name: Set up Go
1818
uses: actions/setup-go@v6
1919
with:
20-
go-version: '>=1.26'
20+
go-version: '1.26.x'
21+
go-version-file: 'go.mod'
2122
cache: true
2223

2324
- name: Build all platforms

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ xops (XOps) 是一个基于 Go 语言开发的命令行运维工具集,旨在
1616
## 🛠️ 安装
1717

1818
### 环境要求
19-
- Go 1.25 或更高版本
19+
- Go 1.26 或更高版本
2020

2121
### 编译
2222
```bash

0 commit comments

Comments
 (0)