Skip to content

Commit

Permalink
ci: add clang-format checks (#49)
Browse files Browse the repository at this point in the history
* ci: add clang-format checks

* try fix last
  • Loading branch information
james-d-mitchell authored Jan 31, 2025
1 parent b899c93 commit f53350f
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/clang-format-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: clang-format
on: [push, pull_request]
concurrency:
group: ${{ github.workflow }}-${{ github.job }}-${{ github.ref }}
cancel-in-progress: true
jobs:
formatting-check:
name: Formatting check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run clang-format style check for C/C++/Protobuf programs.
uses: jidicula/[email protected]
with:
clang-format-version: '18'
exclude-regex: '(tests\/catch_*.*pp|benchmarks\/catch_*.*pp)'
include-regex: '(include\/hpcombi\/*.hpp|tests\/*.cpp|benchmarks\/*.cpp|examples\/*.cpp|examples\/*.h)'

0 comments on commit f53350f

Please sign in to comment.