Skip to content

Commit 3750bdc

Browse files
修复 macOS xmake build 参数错误并提升命令兼容性。
移除错误的 build 目标参数写法,统一使用稳定构建命令;同时将 run 步骤改为兼容性更高的调用方式。 Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 2963eb7 commit 3750bdc

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

.github/workflows/ci.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,12 @@ jobs:
5050
- name: Test
5151
run: |
5252
export PATH=/home/xlings/.xlings_data/bin:$PATH
53-
xmake run -y -vv templates_test
53+
xmake run templates_test
5454
5555
- name: Run examples
5656
run: |
5757
export PATH=/home/xlings/.xlings_data/bin:$PATH
58-
xmake run -y -vv basic
58+
xmake run basic
5959
6060
build-macos:
6161
runs-on: macos-14
@@ -71,7 +71,7 @@ jobs:
7171
run: |
7272
export PATH=/opt/homebrew/opt/llvm@20/bin:$PATH
7373
xmake f --toolchain=llvm --sdk=/opt/homebrew/opt/llvm@20 -m release -y -vv
74-
xmake -y -vv build mcpplibs-templates -j$(sysctl -n hw.ncpu)
74+
xmake -y -vv -j$(sysctl -n hw.ncpu)
7575
7676
build-windows:
7777
runs-on: windows-latest
@@ -92,7 +92,7 @@ jobs:
9292
xmake -y -vv -j$env:NUMBER_OF_PROCESSORS
9393
9494
- name: Test
95-
run: xmake run -y -vv templates_test
95+
run: xmake run templates_test
9696

9797
- name: Run examples
98-
run: xmake run -y -vv basic
98+
run: xmake run basic

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
- name: Run tests
4444
run: |
4545
export PATH=/home/xlings/.xlings_data/bin:$PATH
46-
xmake run -y -vv templates_test
46+
xmake run templates_test
4747
4848
- name: Create release package
4949
run: |
@@ -73,7 +73,7 @@ jobs:
7373
run: |
7474
export PATH=/opt/homebrew/opt/llvm@20/bin:$PATH
7575
xmake f -p macosx -m release --toolchain=llvm --sdk=/opt/homebrew/opt/llvm@20 -y -vv
76-
xmake -y -vv build mcpplibs-templates -j$(sysctl -n hw.ncpu)
76+
xmake -y -vv -j$(sysctl -n hw.ncpu)
7777
7878
- name: Create release package
7979
run: |
@@ -107,7 +107,7 @@ jobs:
107107
xmake -y -vv -j$env:NUMBER_OF_PROCESSORS
108108
109109
- name: Run tests
110-
run: xmake run -y -vv templates_test
110+
run: xmake run templates_test
111111

112112
- name: Create release package
113113
shell: pwsh

0 commit comments

Comments
 (0)