Skip to content

Commit

Permalink
Add GitHub Action workflow to run clang-format check
Browse files Browse the repository at this point in the history
  • Loading branch information
IshaanDesai committed Aug 23, 2024
1 parent 8772794 commit 0f11320
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 34 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/clang-format-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: clang-format Check
on:
push:
branches:
- main
- develop
pull_request:
paths:
- '**.[ch]pp'
- '**.[ch]'
- '.github/**'
workflow_dispatch:

jobs:
formatting-check:
name: Formatting Check
runs-on: ubuntu-latest
strategy:
matrix:
path:
- 'src'
- 'examples'
steps:
- uses: actions/checkout@v4
- name: Run clang-format style check for C/C++/Protobuf programs.
uses: jidicula/[email protected]
with:
clang-format-version: '13'
check-path: ${{ matrix.path }}
fallback-style: 'Mozilla' # optional
34 changes: 0 additions & 34 deletions .github/workflows/code-style.yml

This file was deleted.

0 comments on commit 0f11320

Please sign in to comment.