Skip to content

RHEL-65784: CI: Enable code style chacking with clang-format [CI-NO-BUILD] #6

RHEL-65784: CI: Enable code style chacking with clang-format [CI-NO-BUILD]

RHEL-65784: CI: Enable code style chacking with clang-format [CI-NO-BUILD] #6

Workflow file for this run

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: |
apt-get update
apt-get install --no-install-recommends -y clang-format-18
bash Tools/clang-format.sh ${CHECK_PATH} "" ${EXCLUDE_REGEX}
env:
CHECK_PATH: ${{ matrix.path['check'] }}
EXCLUDE_REGEX: ${{ matrix.path['exclude'] }}