Skip to content

Commit be19300

Browse files
修复工作流中的 xmake 非交互参数。
为 CI 和 release 的 xmake 配置、构建与测试命令统一增加 -y 和 -vv,避免依赖安装确认导致的流水线中断并保留详细日志。 Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent aecd471 commit be19300

2 files changed

Lines changed: 21 additions & 22 deletions

File tree

.github/workflows/ci.yml

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -44,18 +44,18 @@ jobs:
4444
- name: Build
4545
run: |
4646
export PATH=/home/xlings/.xlings_data/bin:$PATH
47-
xmake f -m release -y
48-
xmake -j$(nproc)
47+
xmake f -m release -y -vv
48+
xmake -y -vv -j$(nproc)
4949
5050
- name: Test
5151
run: |
5252
export PATH=/home/xlings/.xlings_data/bin:$PATH
53-
xmake run templates_test
53+
xmake -y -vv run templates_test
5454
5555
- name: Run examples
5656
run: |
5757
export PATH=/home/xlings/.xlings_data/bin:$PATH
58-
xmake run basic
58+
xmake -y -vv run basic
5959
6060
build-macos:
6161
runs-on: macos-14
@@ -70,15 +70,14 @@ jobs:
7070
- name: Build
7171
run: |
7272
export PATH=/opt/homebrew/opt/llvm@20/bin:$PATH
73-
xmake f --toolchain=llvm --sdk=/opt/homebrew/opt/llvm@20 -y
74-
xmake -m release -y
75-
xmake -j$(sysctl -n hw.ncpu)
73+
xmake f --toolchain=llvm --sdk=/opt/homebrew/opt/llvm@20 -m release -y -vv
74+
xmake -y -vv -j$(sysctl -n hw.ncpu)
7675
7776
- name: Test
78-
run: xmake run templates_test
77+
run: xmake -y -vv run templates_test
7978

8079
- name: Run examples
81-
run: xmake run basic
80+
run: xmake -y -vv run basic
8281

8382
build-windows:
8483
runs-on: windows-latest
@@ -95,11 +94,11 @@ jobs:
9594

9695
- name: Build
9796
run: |
98-
xmake f -m release -y
99-
xmake -j$env:NUMBER_OF_PROCESSORS
97+
xmake f -m release -y -vv
98+
xmake -y -vv -j$env:NUMBER_OF_PROCESSORS
10099
101100
- name: Test
102-
run: xmake run templates_test
101+
run: xmake -y -vv run templates_test
103102

104103
- name: Run examples
105-
run: xmake run basic
104+
run: xmake -y -vv run basic

.github/workflows/release.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@ jobs:
3737
- name: Build with xmake
3838
run: |
3939
export PATH=/home/xlings/.xlings_data/bin:$PATH
40-
xmake f -m release -y
41-
xmake -j$(nproc)
40+
xmake f -m release -y -vv
41+
xmake -y -vv -j$(nproc)
4242
4343
- name: Run tests
4444
run: |
4545
export PATH=/home/xlings/.xlings_data/bin:$PATH
46-
xmake run templates_test
46+
xmake -y -vv run templates_test
4747
4848
- name: Create release package
4949
run: |
@@ -72,11 +72,11 @@ jobs:
7272
- name: Build with xmake (LLVM 20)
7373
run: |
7474
export PATH=/opt/homebrew/opt/llvm@20/bin:$PATH
75-
xmake f -p macosx -m release --toolchain=llvm --sdk=/opt/homebrew/opt/llvm@20 -y
76-
xmake -j$(sysctl -n hw.ncpu)
75+
xmake f -p macosx -m release --toolchain=llvm --sdk=/opt/homebrew/opt/llvm@20 -y -vv
76+
xmake -y -vv -j$(sysctl -n hw.ncpu)
7777
7878
- name: Run tests
79-
run: xmake run templates_test
79+
run: xmake -y -vv run templates_test
8080

8181
- name: Create release package
8282
run: |
@@ -106,11 +106,11 @@ jobs:
106106

107107
- name: Build with xmake
108108
run: |
109-
xmake f -m release -y
110-
xmake -j$env:NUMBER_OF_PROCESSORS
109+
xmake f -m release -y -vv
110+
xmake -y -vv -j$env:NUMBER_OF_PROCESSORS
111111
112112
- name: Run tests
113-
run: xmake run templates_test
113+
run: xmake -y -vv run templates_test
114114

115115
- name: Create release package
116116
shell: pwsh

0 commit comments

Comments
 (0)