Skip to content

Comments

优化模板项目结构,参考 cmdline 项目和 mcpp-style-ref 编码规范#1

Merged
Sunrisepeak merged 5 commits intomainfrom
optimize-template-project
Feb 24, 2026
Merged

优化模板项目结构,参考 cmdline 项目和 mcpp-style-ref 编码规范#1
Sunrisepeak merged 5 commits intomainfrom
optimize-template-project

Conversation

@Sunrisepeak
Copy link
Member

  • 重构 src/templates.cppm,遵循 mcpp-style-ref 模块文件结构规范
  • 改进 xmake.lua,添加模块策略和子目录 includes
  • 新增 tests/xmake.lua 独立测试构建配置,集成 gtest
  • 新增 examples/ 目录,包含基础示例
  • 新增 .github/workflows/ci.yml 多平台 CI(Linux/macOS/Windows)
  • 新增 docs/architecture.md 架构文档
  • 更新 CMakeLists.txt 同步通配符模式
  • 完善 .gitignore 和 README.md

Sunrisepeak and others added 5 commits February 24, 2026 13:09
- 重构 src/templates.cppm,遵循 mcpp-style-ref 模块文件结构规范
- 改进 xmake.lua,添加模块策略和子目录 includes
- 新增 tests/xmake.lua 独立测试构建配置,集成 gtest
- 新增 examples/ 目录,包含基础示例
- 新增 .github/workflows/ci.yml 多平台 CI(Linux/macOS/Windows)
- 新增 docs/architecture.md 架构文档
- 更新 CMakeLists.txt 同步通配符模式
- 完善 .gitignore 和 README.md

Co-authored-by: Cursor <cursoragent@cursor.com>
补全多平台 CI 的触发、并发控制和 release 构建流程,新增手动发布并自动创建 GitHub Release 的工作流。

Co-authored-by: Cursor <cursoragent@cursor.com>
为 CI 和 release 的 xmake 配置、构建与测试命令统一增加 -y 和 -vv,避免依赖安装确认导致的流水线中断并保留详细日志。

Co-authored-by: Cursor <cursoragent@cursor.com>
macOS 仅构建库目标以避开 gtest 工具链冲突,修正 xmake run 参数顺序,并保持命令非交互与详细日志输出。

Co-authored-by: Cursor <cursoragent@cursor.com>
移除错误的 build 目标参数写法,统一使用稳定构建命令;同时将 run 步骤改为兼容性更高的调用方式。

Co-authored-by: Cursor <cursoragent@cursor.com>
@Sunrisepeak Sunrisepeak merged commit 99a7a4e into main Feb 24, 2026
3 checks passed
@Sunrisepeak Sunrisepeak deleted the optimize-template-project branch February 24, 2026 05:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant