Skip to content

RHEL-65784: Update code style section in contributing.md [CI-NO-BUILD] #31

RHEL-65784: Update code style section in contributing.md [CI-NO-BUILD]

RHEL-65784: Update code style section in contributing.md [CI-NO-BUILD] #31

Workflow file for this run

name: clang-format check
on: [push, pull_request]
jobs:
clang-format:
name: Code style check for ${{ matrix.path['check'] }}
runs-on: ubuntu-24.04
strategy:
matrix:
path:
- check: '.'
exclude: './VirtIO'
- check: 'VirtIO'
exclude: ''
steps:
- uses: actions/checkout@v4
- name: Run clang-format style check for C/C++ programs.
run: |
sudo apt-get update
sudo apt-get install --no-install-recommends -y clang-format-16
bash Tools/clang-format-helper.sh ${CHECK_PATH} "" ${EXCLUDE_REGEX}
env:
CHECK_PATH: ${{ matrix.path['check'] }}
EXCLUDE_REGEX: ${{ matrix.path['exclude'] }}