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