Skip to content

Commit

Permalink
Use a newer version of clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
srvasude committed May 30, 2024
1 parent d251574 commit cb2993f
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/clang-format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,17 @@ jobs:
run:
shell: bash
timeout-minutes: 1
strategy:
matrix:
path:
- 'cxx'
- 'cxx/distributions'
- 'cxx/tests'
steps:
- name: Checking out repository
uses: actions/checkout@v4
- name: Install dependencies
run : |
sudo apt-get update && sudo apt-get install -yq clang clang-format
- name: Run clang-format
run: cd cxx && clang-format --version && clang-format --dry-run -Werror --verbose *.cc *.hh \
*.hpp distributions/*.cc distributions/*.hh tests/*.cc
- name: Run clang-format.
uses: jidicula/[email protected]
with:
clang-format-version: '17'
check-path: ${{ matrix.path }}

0 comments on commit cb2993f

Please sign in to comment.