From f8ddafe4a290aa62d4ae0fa72ed8605c66126c55 Mon Sep 17 00:00:00 2001 From: sithlord48 Date: Wed, 18 Dec 2024 13:32:44 -0500 Subject: [PATCH] ci: use clang-format directly in lint-clang action --- .github/actions/lint-clang/action.yml | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/.github/actions/lint-clang/action.yml b/.github/actions/lint-clang/action.yml index f3a61584b..a7664fa80 100644 --- a/.github/actions/lint-clang/action.yml +++ b/.github/actions/lint-clang/action.yml @@ -5,17 +5,12 @@ runs: using: "composite" steps: - - name: Setup Python venv - uses: ./.github/actions/init-python - - name: Install dependencies shell: bash - run: | - source .venv/bin/activate - pip install pyyaml clang_format + run: pipx install --global clang_format - name: Linting with Clang formatter uses: ./.github/actions/lint-error with: - format-command: ./scripts/lint_clang.py -f + format-command: find src/ -regex '.*\.\(cpp\|hpp\|cc\|cxx\|h\|c\|m\|mm\)' -exec clang-format -style=file --assume-filename=$(pwd)/.clang-format -i {} \; format-tool: "clang-format"