ci: 添加 Gitea Actions 示例工作流

- 新增 ci.yaml 文件,定义 Gitea Actions 示例
This commit is contained in:
hu xiaotong
2025-06-26 14:33:27 +08:00
parent c19ae59133
commit b4da7bce11
2 changed files with 4 additions and 3 deletions

View File

@@ -48,8 +48,9 @@ jobs:
- name: 安装Go环境
run: |
echo "🔧 安装Go 1.22环境..."
if command -v go &> /dev/null; then
echo "✅ Go已安装: $(go version)"
if [ -x /usr/local/go/bin/go ]; then
echo "✅ Go已安装: $(/usr/local/go/bin/go version)"
export PATH=$PATH:/usr/local/go/bin
else
echo "📥 下载并安装Go..."
GO_VERSION="1.22.0"

2
go.mod
View File

@@ -2,7 +2,7 @@ module epic
go 1.22
toolchain go1.24.4
//toolchain go1.24.4
require (
github.com/gogf/gf/contrib/drivers/mysql/v2 v2.9.0