Skip to content

Commit

Permalink
add code format check
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaomx32 committed Dec 8, 2024
1 parent 31add72 commit fd37ea0
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/code-format-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: C++ Code Check
on: [ push, pull_request ]
jobs:
formatting-check:
name: Check C++ Code Formatting
runs-on: ubuntu-24.04
strategy:
matrix:
path:
- check: 'include'
- check: 'src'
exclude: 'ext'
steps:
- uses: actions/checkout@v4
- name: Run clang-format style check for C/C++/Protobuf programs.
uses: jidicula/[email protected]
with:
clang-format-version: '18'
check-path: ${{ matrix.path['check'] }}
exclude-regex: ${{ matrix.path['exclude'] }}
fallback-style: 'LLVM'

0 comments on commit fd37ea0

Please sign in to comment.