ci: use clang-format directly in lint-clang action
This commit is contained in:
parent
ab44559df6
commit
f8ddafe4a2
1 changed files with 2 additions and 7 deletions
9
.github/actions/lint-clang/action.yml
vendored
9
.github/actions/lint-clang/action.yml
vendored
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in a new issue