Some tweaks

This commit is contained in:
GOB
2024-08-23 02:35:31 +09:00
parent 3825863e02
commit 71c76a666f
+25 -12
View File
@@ -12,7 +12,15 @@ on:
- '**.h'
- '**.c'
- '**.inl'
- '**clang-format-check.yml'
pull_request:
- '**.ino'
- '**.cpp'
- '**.hpp'
- '**.h'
- '**.c'
- '**.inl'
- '**clang-format-check.yml'
jobs:
formatting-check:
@@ -23,16 +31,21 @@ jobs:
path:
#- check: './' # path to include
# exclude: '' # path to exclude
- check: 'src'
# exclude: '(Fonts)' # Exclude file paths containing "Fonts"
# - check: 'examples'
# exclude: ''
- check: 'src'
- check: 'test'
- check: 'examples'
# exclude: '(Fonts)' # Exclude file paths containing "Fonts"
steps:
- uses: actions/checkout@v3.1.0
- name: Run clang-format style check for C/C++/Protobuf programs.
uses: jidicula/clang-format-action@v4.11.0
with:
clang-format-version: '13'
check-path: ${{ matrix.path['check'] }}
exclude-regex: ${{ matrix.path['exclude'] }}
include-regex: ${{ env.INCLUDE_REGEX }}
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Run clang-format style check for C/C++/Protobuf programs.
uses: jidicula/clang-format-action@v4.10.2 # Using include-regex 10.x or later
with:
clang-format-version: '13'
check-path: ${{ matrix.path['check'] }}
exclude-regex: ${{ matrix.path['exclude'] }}
include-regex: ${{ env.INCLUDE_REGEX }}