From 94bff13b90673ddd320bf1c4086ece39b7d4a74d Mon Sep 17 00:00:00 2001 From: Mykola Solianko Date: Mon, 16 Feb 2026 17:23:07 +0200 Subject: [PATCH] ci: replace clang-format action with pip install Signed-off-by: Mykola Solianko Reviewed-by: Mykola Kobets Reviewed-by: Oleksandr Grytsov --- .github/workflows/check-format.yaml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) 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 {} +;