Add clang format and corresponding ci action
This commit is contained in:
19
.gitea/workflows/clang-format.yaml
Normal file
19
.gitea/workflows/clang-format.yaml
Normal 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:
|
||||
- 'components'
|
||||
- 'main'
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Run clang-format style check for C/C++/Protobuf programs.
|
||||
uses: jidicula/clang-format-action@v4.4.1
|
||||
with:
|
||||
clang-format-version: '13'
|
||||
check-path: ${{ matrix.path }}
|
||||
fallback-style: 'Mozilla' # optional
|
||||
Reference in New Issue
Block a user