diff --git a/.github/workflows/check-format.yaml b/.github/workflows/check-format.yaml index 55d9580fa..25ed16edb 100644 --- a/.github/workflows/check-format.yaml +++ b/.github/workflows/check-format.yaml @@ -19,15 +19,18 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install clang-format==15.0.7 cmake_format + - name: Run clang-format style check - uses: jidicula/clang-format-action@v4.11.0 - with: - clang-format-version: "15" + run: | + find . -not -path '*/build/*' \( -name '*.cpp' -or -name '*.hpp' -or -name '*.c' -or -name '*.h' \) \ + -exec clang-format --dry-run --Werror {} + - name: Run cmake-format style check run: | - python -m pip install --upgrade pip - pip install cmake_format find . \( \( -not -path '*/build/*' \) -name '*.cmake' -or -name 'CMakeLists.txt' \) \ -exec cmake-format --check {} +;