Create clang-format.yml

This commit is contained in:
Jordan Bayles 2024-09-09 16:52:59 -07:00 committed by GitHub
parent c8166ddf1c
commit 255ebc54af
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

19
.github/workflows/clang-format.yml vendored Normal file
View File

@ -0,0 +1,19 @@
name: clang-format Check
on: [push, pull_request]
jobs:
formatting-check:
name: Formatting Check
runs-on: ubuntu-latest
strategy:
matrix:
path:
- 'src'
- 'examples'
- 'include'
steps:
- uses: actions/checkout@v4
- name: Run clang-format style check for C/C++/Protobuf programs.
uses: jidicula/clang-format-action@v4.13.0
with:
clang-format-version: '13'
check-path: ${{ matrix.path }}