From de17e49f5f5f1b5e2016436092e85b48f82eeca0 Mon Sep 17 00:00:00 2001 From: Mykola Solianko Date: Mon, 16 Feb 2026 16:58:34 +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 | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/check-format.yaml b/.github/workflows/check-format.yaml index 25e4881ff..62b8e604e 100644 --- a/.github/workflows/check-format.yaml +++ b/.github/workflows/check-format.yaml @@ -19,16 +19,19 @@ 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" - exclude-regex: src\/core\/common\/crypto\/mbedtls\/drivers\/.*|mbedtls_config\.h|src\/core\/common\/pkcs11\/cryptoki/.*|seqoid\.hpp + run: | + git ls-files '*.c' '*.cpp' '*.h' '*.hpp' '*.cc' | \ + grep -v -E 'src/core/common/crypto/mbedtls/drivers/|mbedtls_config\.h|src/core/common/pkcs11/cryptoki/|seqoid\.hpp' | \ + xargs 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 {} +;