Removes some unneeded log entries which could potentially slow the pr… #14
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Code Quality Check | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| branches: | |
| - master | |
| jobs: | |
| code-quality: | |
| name: Code Formatting & Linting Check | |
| runs-on: windows-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Install Clang-Tools (LLVM) | |
| run: choco install llvm --version=20.1.7 -y | |
| - name: Add LLVM to PATH for subsequent steps | |
| # This is a robust way to ensure the tools are found | |
| run: echo "C:\Program Files\LLVM\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append | |
| - name: Verify clang-tools installation | |
| run: | | |
| clang-format --version | |
| clang-tidy --version | |
| shell: pwsh | |
| - name: Check code formatting for compliance | |
| run: | | |
| $files = Get-ChildItem -Path src -Recurse -Include *.cpp,*.h | |
| clang-format --dry-run --Werror --style=file $files | |
| shell: pwsh # Use PowerShell for Get-ChildItem | |
| - name: Set up MSVC build environment for the script | |
| uses: ilammy/msvc-dev-cmd@v1 | |
| with: | |
| arch: x64 | |
| - name: Run clang-tidy | |
| shell: cmd | |
| run: | | |
| scripts\lint.bat |