优化模板项目结构,参考 cmdline 项目和 mcpp-style-ref 编码规范#1
Merged
Sunrisepeak merged 5 commits intomainfrom Feb 24, 2026
Merged
Conversation
Member
Sunrisepeak
commented
Feb 24, 2026
- 重构 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
- 重构 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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.