Commit Graph

8 Commits

Author SHA1 Message Date
大麦
7af1c37577 ci: 使用 xwin 代替 MinGW
Some checks failed
Build Windows / Build Windows (push) Failing after 18m42s
问题:
- apt-get 安装 MinGW 依赖失败
- x86_64-w64-mingw32-posix-runtime 包不存在

解决方案:
- 使用 xwin 下载预编译的 MinGW CRT
- 使用 Cargo 安装 xwin 工具链
- 专门针对 Windows MSVC 编译

优势:
- 无需系统安装 MinGW
- 预编译的 CRT 更稳定
- Rust 标准的交叉编译方式
2026-03-10 18:23:17 +08:00
大麦
f8cd6b1d17 ci: 修复 MinGW 包名错误
Some checks failed
Build Windows / Build Windows (push) Failing after 15m35s
- 使用正确的 Debian 包名:gcc-mingw-w64-x86-64
- 移除不存在的 x86_64-w64-mingw32-posix-runtime 包
2026-03-10 18:03:23 +08:00
大麦
df48965e02 ci: 修复 Runner 无 sudo 问题
Some checks failed
Build Windows / Build Windows (push) Failing after 1m11s
- 移除所有 sudo 命令(容器以 root 运行)
- apt-get 不需要 sudo
2026-03-10 17:55:49 +08:00
大麦
cd19407f29 ci: 完全不依赖 GitHub 的 workflow
Some checks failed
Build Windows / Build Windows (push) Failing after 5m35s
- 使用 git clone 代替 actions/checkout
- 所有操作使用基础命令
- 不依赖任何 GitHub Actions

适用场景:
- Gitea Actions 无法访问 GitHub
- 完全离线环境
- 安全要求高的环境
2026-03-10 17:04:09 +08:00
大麦
e321271734 ci: 修复 Gitea Actions - 移除 GitHub 专用 action
Some checks failed
Build Windows / Build Windows (push) Failing after 41s
问题:dtolnay/rust-action 需要 GitHub 认证
解决:使用基础命令安装 Rust

修复内容:
- 使用 rustup 官方脚本安装 Rust
- 使用 apt 安装 MinGW 和 GTK 依赖
- 使用 Gitea API 直接上传 Release
2026-03-10 16:57:28 +08:00
大麦
0dd7c30b62 ci: 简化 Gitea Actions workflow
Some checks failed
Build Release / Build Windows (push) Failing after 6m22s
- 使用更兼容的语法
- 简化编译步骤
- 直接使用 Gitea API 上传 Release 而不是 GitHub Actions
2026-03-10 16:52:25 +08:00
大麦
7cc5e141c7 ci: 优化 Gitea Actions Workflow 配置
Some checks failed
Release Build / Build Windows (push) Failing after 17s
Release Build / Build Linux (push) Failing after 55s
Release Build / Build macOS (push) Has been cancelled
- 添加 GITEA_TOKEN 全局变量
- 使用 dtolnay/rust-action 编译
- 安装必要依赖
- 使用 ncipollo/release-action 上传
- 修复上传问题
2026-03-10 16:46:41 +08:00
大麦
3a6f2f29cd ci: 添加 Gitea Actions 自动编译工作流
- 支持 Windows/Linux/macOS 三平台
- 使用交叉编译 (ubuntu + mingw)
- 自动打包并上传 Release
- 触发器:Git tag 推送

平台支持:
- Windows: x86_64-pc-windows-gnu (mingw)
- Linux: x86_64-unknown-linux-gnu
- macOS: x86_64-apple-darwin
2026-03-10 16:08:21 +08:00