CI: add clang-format check

This commit is contained in:
2026-04-27 19:20:03 +02:00
parent 986618a05b
commit 533afd0a4b
+9 -1
View File
@@ -10,10 +10,18 @@ jobs:
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Install clang
run: |
sudo apt-get update
sudo apt-get install -y clang-format
- name: Check format
run: |
clang-format --version
find src -name "*.c" -o -name "*.h" | xargs clang-format --dry-run --Werror
- name: Install dependencies - name: Install dependencies
run: | run: |
sudo apt-get update
sudo apt-get install -y \ sudo apt-get install -y \
gcc \ gcc \
make \ make \