Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 9 additions & 7 deletions .github/workflows/clang-format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,19 @@ jobs:
strategy:
matrix:
path:
- 'src'
- 'tests'
- src
- tests

steps:
- name: Checkout Repo
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Install clang-format
run: sudo apt-get update && sudo apt-get install -y clang-format-20

- name: Verify Formatting
uses: jidicula/clang-format-action@v4.15.0
with:
clang-format-version: '20'
check-path: ${{ matrix.path }}
- name: Verify formatting (${{ matrix.path }})
run: |
find ${{ matrix.path }} \( -name '*.cpp' -o -name '*.hpp' \) -print0 | \
xargs -0 clang-format-20 --dry-run --Werror
Loading