InfiniTensor/.github/workflows/clang-format-check.yml

27 lines
555 B
YAML

name: clang-format Check
on:
push:
branch: 'master'
pull_request:
paths-ignore:
- '**.md'
- 'LICENSE'
jobs:
formatting-check:
name: Formatting Check
runs-on: ubuntu-latest
strategy:
matrix:
path:
- 'include'
- 'src'
- 'test'
steps:
- uses: actions/checkout@v3
- name: Run clang-format style check for C/C++/Protobuf programs.
uses: jidicula/clang-format-action@v4.8.0
with:
clang-format-version: '14'
check-path: ${{ matrix.path }}