Skip to content

πŸ’š Add clang-format ci #4

πŸ’š Add clang-format ci

πŸ’š Add clang-format ci #4

Workflow file for this run

name: Format Check for C++ and Objective-C
on:
pull_request:
paths:
- '**/*.cpp'
- '**/*.c'
- '**/*.h'
- '**/*.mm'
- '**/*.m'
jobs:
format-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install clang-format
run: sudo apt install clang-format-19
- name: Find and Check All Files
run: |
FILES=$(find . -type f \( -name '*.cpp' -o -name '*.c' -o -name '*.h' -o -name '*.mm' -o -name '*.m' \))
for file in $FILES; do
clang-format --dry-run -Werror $file || exit 1
done