Skip to content

clang-format

clang-format #992

name: clang-format
on:
workflow_dispatch:
pull_request:
push:
branches:
- "main"
- "stable-*.*"
schedule:
# Every day at 3:10 AM UTC
- cron: '10 3 * * *'
jobs:
formatting-check:
name: Formatting check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: "Run clang-format style checks on src/*.[hc]pp . . ."
uses: jidicula/clang-format-action@v4.13.0
with:
clang-format-version: '15'
exclude-regex: 'src\/_pkgconfig.h*'
check-path: 'src'