Update clang-format.yml

This commit is contained in:
xiaoyifang 2022-02-11 22:09:44 +08:00 committed by GitHub
parent 860cdbc467
commit aaf36f8285
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,14 +1,7 @@
name: Clang Format Checker
on:
workflow_dispatch:
push:
branches:
- dev
- staged
paths-ignore:
- 'docs/**'
- ".github/**"
- "howto/**"
pull_request:
branches:
- dev
@ -24,14 +17,14 @@ jobs:
strategy:
matrix:
path:
- exclude: 'winlibs|maclibs' # Exclude file paths containing "hello" or "world"
- exclude: "(winlibs|maclibs)" # Exclude file paths containing "hello" or "world"
steps:
- uses: actions/checkout@v2
- name: Run clang-format style check for C/C++/Protobuf programs.
uses: jidicula/clang-format-action@v4.5.0
with:
clang-format-version: '13'
check-path: ${{ matrix.path['check'] }}
# check-path: ${{ matrix.path['check'] }}
exclude-regex: ${{ matrix.path['exclude'] }}
fallback-style: 'llvm' # optional