mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 19:24:08 +00:00
action:remove clang check file
the check action does not work well . jidicula/clang-format-action@v4.5.0 RafikFarhad/clang-format-github-action@v1.0.1
This commit is contained in:
parent
e2fe63f98f
commit
d62b80d868
43
.github/workflows/clang-format.yml
vendored
43
.github/workflows/clang-format.yml
vendored
|
@ -1,43 +0,0 @@
|
||||||
name: Clang Format Checker
|
|
||||||
on:
|
|
||||||
workflow_dispatch:
|
|
||||||
push:
|
|
||||||
paths-ignore:
|
|
||||||
- 'docs/**'
|
|
||||||
- ".github/**"
|
|
||||||
- "howto/**"
|
|
||||||
- "winlibs/**"
|
|
||||||
pull_request:
|
|
||||||
branches:
|
|
||||||
- dev
|
|
||||||
- staged
|
|
||||||
paths-ignore:
|
|
||||||
- 'docs/**'
|
|
||||||
- ".github/**"
|
|
||||||
- "howto/**"
|
|
||||||
- "winlibs/**"
|
|
||||||
jobs:
|
|
||||||
formatting-check:
|
|
||||||
name: Formatting Check
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
path:
|
|
||||||
- exclude: "(winlibs|maclibs)" # Exclude file paths containing "hello" or "world"
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
- name: Run clang-format style check for C/C++
|
|
||||||
uses: jidicula/clang-format-action@v4.5.0
|
|
||||||
with:
|
|
||||||
clang-format-version: '13'
|
|
||||||
# check-path: ${{ matrix.path['check'] }}
|
|
||||||
exclude-regex: ${{ matrix.path['exclude'] }}
|
|
||||||
fallback-style: 'llvm' # optional
|
|
||||||
|
|
||||||
clang-format-checking:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
- uses: RafikFarhad/clang-format-github-action@v1.0.1
|
|
||||||
with:
|
|
||||||
sources: "**/*.c,**/*.h,**/*.cc,**/*.hh,**/*.cpp,**/*.hpp"
|
|
Loading…
Reference in a new issue