From 3d9980314ce351ad5a01fc22616ca0299a70e3a8 Mon Sep 17 00:00:00 2001 From: zhenyan121 <3367366583@qq.com> Date: Tue, 30 Jun 2026 12:01:58 +0800 Subject: [PATCH] ci(workflow): update format check to use LLVM 22 --- .github/workflows/format-check.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/format-check.yml b/.github/workflows/format-check.yml index c033c70..13c3692 100644 --- a/.github/workflows/format-check.yml +++ b/.github/workflows/format-check.yml @@ -1,4 +1,3 @@ -# .github/workflows/format-check.yml name: Code Format Check on: [push, pull_request] @@ -9,9 +8,19 @@ permissions: jobs: formatting: runs-on: ubuntu-latest - container: silkeh/clang:21 + steps: - uses: actions/checkout@v4 + + - name: Install LLVM 22 + run: | + wget https://apt.llvm.org/llvm.sh + chmod +x llvm.sh + sudo ./llvm.sh 22 + clang-format-22 --version + - name: Run clang-format run: | - find src include -name '*.cpp' -o -name '*.hpp' -print0 | xargs -0 clang-format --dry-run --Werror \ No newline at end of file + find src include \ + \( -name '*.cpp' -o -name '*.hpp' \) \ + -print0 | xargs -0 clang-format-22 --dry-run --Werror \ No newline at end of file