From c748992ef10f40002d9ab363fcaf72ebc9c79ae3 Mon Sep 17 00:00:00 2001 From: yizhinailong Date: Sat, 14 Mar 2026 17:36:11 +0800 Subject: [PATCH 1/3] fix(build): update file patterns in xmake build configurations - Change test files pattern from "*.cpp" to "basic/*.cpp" in tests/xmake.lua - Update source modules pattern from "src/*.cppm" to "src/**.cppm" in xmake.lua - These changes ensure proper file inclusion for building and testing --- tests/xmake.lua | 2 +- xmake.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/xmake.lua b/tests/xmake.lua index d113570..fd1d671 100644 --- a/tests/xmake.lua +++ b/tests/xmake.lua @@ -6,7 +6,7 @@ add_requires("gtest") target("primitives_test") set_kind("binary") - add_files("*.cpp") + add_files("basic/*.cpp") add_deps("mcpplibs-primitives") add_packages("gtest") set_policy("build.c++.modules", true) diff --git a/xmake.lua b/xmake.lua index 31afa35..3b780dc 100644 --- a/xmake.lua +++ b/xmake.lua @@ -4,7 +4,7 @@ set_languages("c++23") target("mcpplibs-primitives") set_kind("static") - add_files("src/*.cppm", { public = true, install = true }) + add_files("src/**.cppm", { public = true, install = true }) set_policy("build.c++.modules", true) if not is_host("macosx") then From c0abbc28b4e80183737147e1e5367ac05828338e Mon Sep 17 00:00:00 2001 From: yizhinailong Date: Sat, 14 Mar 2026 17:44:21 +0800 Subject: [PATCH 2/3] fix(workflow): update test command in CI workflow - Changed test command from 'xmake run templates_test' to 'xmake run primitives_test' --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 80d23cf..2549723 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -90,7 +90,7 @@ jobs: xmake -y -vv -j$env:NUMBER_OF_PROCESSORS - name: Test - run: xmake run templates_test + run: xmake run primitives_test - name: Run examples run: xmake run basic From 4d37f5a05e931d74b3328bb3bae613fb475cba77 Mon Sep 17 00:00:00 2001 From: yizhinailong Date: Sat, 14 Mar 2026 18:01:18 +0800 Subject: [PATCH 3/3] fix(workflow): update test command in CI workflow Change the test command from 'xmake run templates_test' to 'xmake run primitives_test' in the CI workflow configuration. --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2549723..13a5cb7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -50,7 +50,7 @@ jobs: xmake -y -vv -j$(nproc) - name: Test - run: xmake run templates_test + run: xmake run primitives_test - name: Run examples run: xmake run basic