2024-09-09 16:54:56 -07:00
|
|
|
name: clang-format check
|
2024-09-09 18:35:49 -07:00
|
|
|
on: [check_run, pull_request, push]
|
2024-09-09 17:19:14 -07:00
|
|
|
|
2024-09-09 16:52:59 -07:00
|
|
|
jobs:
|
|
|
|
formatting-check:
|
2024-09-09 16:54:56 -07:00
|
|
|
name: formatting check
|
2024-09-09 16:52:59 -07:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
path:
|
|
|
|
- 'src'
|
|
|
|
- 'examples'
|
|
|
|
- 'include'
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
2024-09-09 16:54:56 -07:00
|
|
|
- name: runs clang-format style check for C/C++/Protobuf programs.
|
2024-09-09 16:52:59 -07:00
|
|
|
uses: jidicula/clang-format-action@v4.13.0
|
|
|
|
with:
|
2024-09-09 16:56:02 -07:00
|
|
|
clang-format-version: '18'
|
2024-09-09 16:52:59 -07:00
|
|
|
check-path: ${{ matrix.path }}
|