ci: use clang-format directly in lint-clang action

This commit is contained in:
sithlord48
2024-12-18 13:32:44 -05:00
committed by Nick Bolton
parent ab44559df6
commit f8ddafe4a2

View File

@ -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"