diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5d21d25e..97ca64dc 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -46,15 +46,13 @@ jobs: steps: - uses: actions/checkout@v4 - - run: | - choco install llvm -y --version=17.0.6 - - - name: clang-format - run: | - Get-ChildItem src/ -Filter *.cpp -Recurse | ForEach-Object { clang-format -i -Werror $_.FullName } - Get-ChildItem src/ -Filter *.h -Recurse | ForEach-Object { clang-format -i -Werror $_.FullName } + - id: cpp-linter-action + uses: cpp-linter/cpp-linter-action@v2 + with: + style: file + tidy-checks: '' + version: 17 - - name: clang-tidy + - if: ${{ steps.cpp-linter-action.outputs.checks-failed > 0 }} run: | - Get-ChildItem src/ -Filter *.cpp -Recurse | ForEach-Object { clang-tidy -p build -header-filter=src/ $_.FullName } - Get-ChildItem src/ -Filter *.h -Recurse | ForEach-Object { clang-tidy -p build -header-filter=src/ $_.FullName } + exit 1