RHEL-65784: CI: Enable code style chacking with clang-format #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: clang-format check | ||
on: [push, pull_request] | ||
jobs: | ||
clang-format: | ||
name: Code style check | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
path: | ||
- check: '.' | ||
exclude: './VirtIO' | ||
- check: 'VirtIO' | ||
exclude: '' | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Run clang-format style check for C/C++/Protobuf programs. | ||
run: | | ||
Check failure on line 19 in .github/workflows/clang-format.yml GitHub Actions / clang-format checkInvalid workflow file
|
||
apt-get update | ||
apt-get install --no-install-recommends -y clang-format-18 | ||
bash Tools/clang-format.sh ${{CHECK_PATHpath}} "" ${{EXCLUDE_REGEX}} | ||
env: | ||
CHECK_PATH: ${{ matrix.path['check'] }} | ||
EXCLUDE_REGEX: ${{ matrix.path['exclude'] }} |