Skip to content

Commit 2a056f1

Browse files
committed
fix(build): align xmake build patterns and CI test command
- #2 - https://github.com/yizhinailong Signed-off-by: sunrisepeak <speakshen@163.com>
1 parent 04b7b5c commit 2a056f1

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
xmake -y -vv -j$(nproc)
5151
5252
- name: Test
53-
run: xmake run templates_test
53+
run: xmake run primitives_test
5454

5555
- name: Run examples
5656
run: xmake run basic
@@ -104,7 +104,7 @@ jobs:
104104
xmake -y -vv -j$env:NUMBER_OF_PROCESSORS
105105
106106
- name: Test
107-
run: xmake run templates_test
107+
run: xmake run primitives_test
108108

109109
- name: Run examples
110110
run: xmake run basic

tests/xmake.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ add_requires("gtest")
66

77
target("primitives_test")
88
set_kind("binary")
9-
add_files("*.cpp")
9+
add_files("basic/*.cpp")
1010
add_deps("mcpplibs-primitives")
1111
add_packages("gtest")
1212
set_policy("build.c++.modules", true)

xmake.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set_languages("c++23")
44

55
target("mcpplibs-primitives")
66
set_kind("static")
7-
add_files("src/*.cppm", { public = true, install = true })
7+
add_files("src/**.cppm", { public = true, install = true })
88
set_policy("build.c++.modules", true)
99

1010
if not is_host("macosx") then

0 commit comments

Comments
 (0)