Skip to content

Commit

Permalink
Use new CI action for clang-format
Browse files Browse the repository at this point in the history
This greatly improves the speed of the clang-format checking on the CI and thus we don't need to run a separate job just for the clang-format check.
  • Loading branch information
daljit46 authored Sep 1, 2023
1 parent 86ab4ba commit 3e104e9
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -215,15 +215,10 @@ jobs:
- name: check building of documentation
run: python3 -m sphinx -n -N -W -w sphinx.log docs/ tmp/

clang-format-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1

- name: clang-format
uses: jidicula/[email protected]
- name: clang-format check
uses: DoozyX/[email protected]
with:
clang-format-version: '16'
fallback-style: 'LLVM'
# Ignore third-party headers.
exclude-regex: 'core/file/(json|nifti[12]).h'
source: '.'
extensions: 'h,cpp'
clangFormatVersion: 16
exclude: './core/file/json.h ./core/file/nifti1.h ./core/file/nifti2.h'

0 comments on commit 3e104e9

Please sign in to comment.