Skip to content

feat: clang-format

feat: clang-format #9

Workflow file for this run

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'] }}