mirror of
https://github.com/javalsai/lidm.git
synced 2025-07-03 22:38:41 +02:00
ci(feat): add clang-format checks
This commit is contained in:
parent
a2b2434445
commit
4bb8563e4d
18
.github/workflows/check-and-build.yml
vendored
18
.github/workflows/check-and-build.yml
vendored
@ -33,11 +33,25 @@ jobs:
|
|||||||
version: 1.0
|
version: 1.0
|
||||||
- run: find . -type f -name '*.sh' -not -path './assets/pkg/aur/*/src/*' | xargs shellcheck
|
- run: find . -type f -name '*.sh' -not -path './assets/pkg/aur/*/src/*' | xargs shellcheck
|
||||||
|
|
||||||
|
clangcheck:
|
||||||
|
name: Chang Check
|
||||||
|
runs-on: ubuntu-24.04
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- uses: awalsh128/cache-apt-pkgs-action@latest
|
||||||
|
with:
|
||||||
|
packages: "clang-format clang-tidy"
|
||||||
|
version: 1.0
|
||||||
|
- run: clang-format -ni src/*.c include/*.h
|
||||||
|
# TODO: include when the errors/warnings are bearable
|
||||||
|
#- run: clang-tidy src/*.c include/*.h
|
||||||
|
|
||||||
build-linux-amd64:
|
build-linux-amd64:
|
||||||
name: Build for amd64
|
name: Build for amd64
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-24.04
|
||||||
permissions: write-all
|
permissions: write-all
|
||||||
needs: [spellcheck, shellcheck]
|
needs: [spellcheck, shellcheck, clangcheck]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
@ -74,7 +88,7 @@ jobs:
|
|||||||
name: Build for i386
|
name: Build for i386
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-24.04
|
||||||
permissions: write-all
|
permissions: write-all
|
||||||
needs: [spellcheck, shellcheck]
|
needs: [spellcheck, shellcheck, clangcheck]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
Loading…
x
Reference in New Issue
Block a user