mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 19:24:08 +00:00
Update clang-format.yml
This commit is contained in:
parent
860cdbc467
commit
aaf36f8285
13
.github/workflows/clang-format.yml
vendored
13
.github/workflows/clang-format.yml
vendored
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue