blob: 4bf18b435a81919c1a6999339e642530365db429 [file] [log] [blame] [edit]
name: Clang-Format
on:
push:
pull_request:
merge_group:
concurrency:
# Skip intermediate builds: always.
# Cancel intermediate builds: only if it is a pull request build.
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
jobs:
build:
name: Format
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: DoozyX/clang-format-lint-action@v0.20
with:
source: 'enzyme/Enzyme enzyme/tools/enzyme-tblgen'
exclude: './CMakeLists.txt enzyme/Enzyme/SCEV'
style: 'llvm'
clangFormatVersion: 16