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" using: "composite"
steps: steps:
- name: Setup Python venv
uses: ./.github/actions/init-python
- name: Install dependencies - name: Install dependencies
shell: bash shell: bash
run: | run: pipx install --global clang_format
source .venv/bin/activate
pip install pyyaml clang_format
- name: Linting with Clang formatter - name: Linting with Clang formatter
uses: ./.github/actions/lint-error uses: ./.github/actions/lint-error
with: 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" format-tool: "clang-format"