-
Notifications
You must be signed in to change notification settings - Fork 7
34 lines (31 loc) · 956 Bytes
/
style.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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'] }}