66 paths :
77 - ' packages/**'
88 - ' tests/**'
9- - ' .github/workflows/ci.yml'
9+ - ' .github/**'
10+ - ' .xlings.json'
1011 pull_request :
1112 branches : [main]
1213 paths :
1314 - ' packages/**'
1415 - ' tests/**'
15- - ' .github/workflows/ci.yml'
16+ - ' .github/**'
17+ - ' .xlings.json'
1618
1719env :
1820 XLINGS_NON_INTERACTIVE : 1
@@ -35,23 +37,23 @@ jobs:
3537 templates:
3638 - 'packages/t/templates/**'
3739 - 'tests/t/templates/**'
38- - '.github/workflows/ci.yml '
40+ - '.github/** '
3941 cmdline:
4042 - 'packages/c/cmdline/**'
4143 - 'tests/c/cmdline/**'
42- - '.github/workflows/ci.yml '
44+ - '.github/** '
4345 llmapi:
4446 - 'packages/l/llmapi/**'
4547 - 'tests/l/llmapi/**'
46- - '.github/workflows/ci.yml '
48+ - '.github/** '
4749 lua:
4850 - 'packages/m/mcpplibs-capi-lua/**'
4951 - 'tests/l/lua/**'
50- - '.github/workflows/ci.yml '
52+ - '.github/** '
5153 xpkg:
5254 - 'packages/m/mcpplibs-xpkg/**'
5355 - 'tests/m/mcpplibs-xpkg/**'
54- - '.github/workflows/ci.yml '
56+ - '.github/** '
5557
5658 build :
5759 needs : detect-changes
@@ -77,37 +79,29 @@ jobs:
7779 - name : Configure (linux)
7880 if : runner.os == 'Linux'
7981 working-directory : tests
80- run : |
81- export PATH="$HOME/.xlings/subos/current/bin:$PATH"
82- xmake f -P . -y
82+ run : xmake f -P . -y
8383
8484 - name : Configure (macos)
8585 if : runner.os == 'macOS'
8686 working-directory : tests
87- run : |
88- export PATH="$HOME/.xlings/subos/current/bin:$PATH"
89- xmake f -P . -y --toolchain=llvm
87+ run : xmake f -P . -y --toolchain=llvm
9088
9189 - name : Configure (windows)
9290 if : runner.os == 'Windows'
9391 working-directory : tests
94- run : |
95- $env:PATH = "$env:USERPROFILE\.xlings\subos\current\bin;$env:PATH"
96- xmake f -P . -y
92+ run : xmake f -P . -y
9793
9894 # templates
9995 - name : templates (unix)
10096 if : runner.os != 'Windows' && needs.detect-changes.outputs.templates == 'true'
10197 working-directory : tests
10298 run : |
103- export PATH="$HOME/.xlings/subos/current/bin:$PATH"
10499 xmake build -P . -y templates_test
105100 xmake run -P . templates_test
106101 - name : templates (windows)
107102 if : runner.os == 'Windows' && needs.detect-changes.outputs.templates == 'true'
108103 working-directory : tests
109104 run : |
110- $env:PATH = "$env:USERPROFILE\.xlings\subos\current\bin;$env:PATH"
111105 xmake build -P . -y templates_test
112106 xmake run -P . templates_test
113107
@@ -116,44 +110,36 @@ jobs:
116110 if : runner.os != 'Windows' && needs.detect-changes.outputs.cmdline == 'true'
117111 working-directory : tests
118112 run : |
119- export PATH="$HOME/.xlings/subos/current/bin:$PATH"
120113 xmake build -P . -y cmdline_test
121114 xmake run -P . cmdline_test test_input
122115 - name : cmdline (windows)
123116 if : runner.os == 'Windows' && needs.detect-changes.outputs.cmdline == 'true'
124117 working-directory : tests
125118 run : |
126- $env:PATH = "$env:USERPROFILE\.xlings\subos\current\bin;$env:PATH"
127119 xmake build -P . -y cmdline_test
128120 xmake run -P . cmdline_test test_input
129121
130122 # llmapi (build only, needs API key to run)
131123 - name : llmapi (unix)
132124 if : runner.os != 'Windows' && needs.detect-changes.outputs.llmapi == 'true'
133125 working-directory : tests
134- run : |
135- export PATH="$HOME/.xlings/subos/current/bin:$PATH"
136- xmake build -P . -y llmapi_test
126+ run : xmake build -P . -y llmapi_test
137127 - name : llmapi (windows)
138128 if : runner.os == 'Windows' && needs.detect-changes.outputs.llmapi == 'true'
139129 working-directory : tests
140- run : |
141- $env:PATH = "$env:USERPROFILE\.xlings\subos\current\bin;$env:PATH"
142- xmake build -P . -y llmapi_test
130+ run : xmake build -P . -y llmapi_test
143131
144132 # lua
145133 - name : lua (unix)
146134 if : runner.os != 'Windows' && needs.detect-changes.outputs.lua == 'true'
147135 working-directory : tests
148136 run : |
149- export PATH="$HOME/.xlings/subos/current/bin:$PATH"
150137 xmake build -P . -y lua_test
151138 xmake run -P . lua_test
152139 - name : lua (windows)
153140 if : runner.os == 'Windows' && needs.detect-changes.outputs.lua == 'true'
154141 working-directory : tests
155142 run : |
156- $env:PATH = "$env:USERPROFILE\.xlings\subos\current\bin;$env:PATH"
157143 xmake build -P . -y lua_test
158144 xmake run -P . lua_test
159145
@@ -162,13 +148,11 @@ jobs:
162148 if : runner.os != 'Windows' && needs.detect-changes.outputs.xpkg == 'true'
163149 working-directory : tests
164150 run : |
165- export PATH="$HOME/.xlings/subos/current/bin:$PATH"
166151 xmake build -P . -y mcpplibs-xpkg_test
167152 xmake run -P . mcpplibs-xpkg_test
168153 - name : mcpplibs-xpkg (windows)
169154 if : runner.os == 'Windows' && needs.detect-changes.outputs.xpkg == 'true'
170155 working-directory : tests
171156 run : |
172- $env:PATH = "$env:USERPROFILE\.xlings\subos\current\bin;$env:PATH"
173157 xmake build -P . -y mcpplibs-xpkg_test
174158 xmake run -P . mcpplibs-xpkg_test
0 commit comments