feat: clang-format #9
This file contains 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: Check Code Style | |
# https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions#concurrency | |
# Ensure that only one commit will be running tests at a time on each PR | |
concurrency: | |
group: ${{ github.ref }}-${{ github.workflow }} | |
cancel-in-progress: true | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
branches: ["main"] | |
jobs: | |
formatting-check: | |
name: Check Formatting | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
path: | |
- check: "so3" | |
exclude: ".S" | |
- check: "usr/src" | |
exclude: "(micropython|lv_)" | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Run clang-format style check for C/C++/Protobuf programs. | |
uses: jidicula/clang-format-action@v4.13.0 | |
with: | |
clang-format-version: "19" | |
check-path: ${{ matrix.path['check'] }} | |
exclude-regex: ${{ matrix.path['exclude'] }} |