15 lines
459 B
YAML
15 lines
459 B
YAML
name: clang-format check
|
|
on: [workflow_dispatch, pull_request]
|
|
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/clang-format-action@v4.10.1
|
|
with:
|
|
clang-format-version: '13'
|
|
check-path: '.'
|
|
include-regex: '^.*\.((((c|C)(c|pp|xx|\+\+)?$)|((h|H)h?(pp|xx|\+\+)?$)))$'
|