4jcraft/.github/workflows/clang-format.yml
2026-03-29 19:16:51 -05:00

33 lines
686 B
YAML

name: Check Format (Linux, x86-64)
on:
push:
paths:
- '**.cpp'
- '**.h'
- '**.c'
- '**.cc'
- '**.cxx'
- '**.hh'
- '**.hpp'
- '**.hxx'
- '**.inl'
- '.clang-format'
- '.github/workflows/clang-format.yml'
- '.github/scripts/check-clang-format.sh'
jobs:
formatting-check:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Run clang-format style check
uses: jidicula/clang-format-action@v4.18.0
with:
# keep this in line with the flake
clang-format-version: "21"