chore(build): 更新 Go 版本到 1.26 并更新依赖包
构建上传工具 / build-tool (push) Successful in 11m52s

- 将 Go 语言版本从 1.25.1 升级到 1.26
- 更新 fyne.io/fyne/v2 从 v2.6.3 到 v2.7.3
- 更新 golang.org/x/sync 从 v0.17.0 到 v0.20.0
- 更新 github.com/BurntSushi/toml 从 v1.4.0 到 v1.5.0
- 更新 github.com/go-text/typesetting 从 v0.2.1 到 v0.3.3
- 更新 github.com/go-viper/mapstructure/v2 从 v2.4.0 到 v2.5.0
- 更新 github.com/pelletier/go-toml/v2 从 v2.2.4 到 v2.3.0
- 更新 github.com/rymdport/portal 从 v0.4.1 到 v0.4.2
- 更新 github.com/sagikazarmark/locafero 从 v0.11.0 到 v0.12.0
- 更新 golang.org/x/sys 从 v0.30.0 到 v0.43.0
- 更新 golang.org/x/text 从 v0.28.0 到 v0.36.0
- 修改构建脚本以动态获取最新 Go 版本号并从阿里云镜像下载
This commit is contained in:
2026-04-25 23:03:33 +08:00
parent efe2a92cf1
commit 4c13ecceaf
3 changed files with 49 additions and 46 deletions
+7 -1
View File
@@ -12,8 +12,14 @@ jobs:
- name: 安装Go(镜像)
run: |
echo "正在检查 Go 语言最新版本..."
LATEST_GO_VERSION=$(curl -s https://go.dev/VERSION?m=text | head -n 1)
if [ -z "$LATEST_GO_VERSION" ]; then
echo "❌ 无法获取最新版本号,请检查网络连接。"
exit 1
fi
# 使用国内镜像下载 Go
wget https://mirrors.aliyun.com/golang/go1.25.3.linux-amd64.tar.gz -O go.tar.gz
wget https://mirrors.aliyun.com/golang/$LATEST_GO_VERSION.linux-amd64.tar.gz -O go.tar.gz
# 解压并设置环境变量
sudo rm -rf /usr/local/go
sudo tar -C /usr/local -xzf go.tar.gz