diff --git a/.github/workflows/clang-format.yml b/.github/workflows/clang-format.yml index 4e0c94ca..028fe82b 100644 --- a/.github/workflows/clang-format.yml +++ b/.github/workflows/clang-format.yml @@ -19,11 +19,9 @@ jobs: uses: actions/checkout@v4 with: persist-credentials: false - - - name: Install clang-format - run: sudo apt-get update && sudo apt-get install -y clang-format-20 - - name: Verify formatting (${{ matrix.path }}) - run: | - find ${{ matrix.path }} \( -name '*.cpp' -o -name '*.hpp' \) -print0 | \ - xargs -0 clang-format-20 --dry-run --Werror + - name: Verify Formatting + uses: jidicula/clang-format-action@v4.16.0 + with: + clang-format-version: '20' + check-path: ${{ matrix.path }}