This repository was archived by the owner on Oct 6, 2025. It is now read-only.
76 task deploy workflow for raspberry pi repo #25
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Clang Format Check | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| - dev | |
| jobs: | |
| clang-format: | |
| name: Check Code Format | |
| runs-on: ubuntu-latest | |
| steps: | |
| # Checkout the code | |
| - name: Checkout Code | |
| uses: actions/checkout@v4 | |
| # Install clang-format | |
| - name: Install clang-format | |
| run: sudo apt-get install -y clang-format | |
| # Run clang-format check | |
| - name: Run clang-format | |
| run: | | |
| # Find all C++ files and check formatting | |
| find . -name '*.cpp' -o -name '*.h' | xargs clang-format -i -style=file | |
| git diff --exit-code || ( | |
| echo "Code is not formatted correctly. Please run clang-format." && exit 1 | |
| ) |