Skip to content

Commit 7e8bc30

Browse files
committed
fix: 修复 ci.yml 中 clang-format action 版本不存在的问题
- jidicula/clang-format-action@v4 不存在,改为 apt 安装 clang-format-18 直接运行
1 parent 84afb88 commit 7e8bc30

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ jobs:
2222
runs-on: ubuntu-latest
2323
steps:
2424
- uses: actions/checkout@v4
25-
- uses: jidicula/clang-format-action@v4
26-
with:
27-
clang-format-version: '18'
28-
check-path: 'taskflowlite'
25+
- name: Install clang-format
26+
run: sudo apt-get install -y -qq clang-format-18
27+
- name: Run clang-format
28+
run: find taskflowlite -name '*.hpp' -o -name '*.cpp' | xargs clang-format-18 --dry-run --Werror
2929

3030
# ============================================================================
3131
# 编译 + 测试矩阵(OS × BuildType × Sanitizer)

0 commit comments

Comments
 (0)