Fixed UI workflow #111
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: Static Analysis | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| jobs: | |
| cppcheck: | |
| name: Run Cppcheck | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v5 | |
| with: | |
| submodules: true | |
| lfs: true | |
| - name: Install dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y cppcheck | |
| - name: Run cppcheck | |
| run: | | |
| mkdir -p cppcheck-report | |
| cppcheck --enable=all --inconclusive --quiet \ | |
| --output-file=cppcheck-report/cppcheck.txt \ | |
| $GITHUB_WORKSPACE/framework/src/ \ | |
| -I $GITHUB_WORKSPACE/include/ \ | |
| -I $GITHUB_WORKSPACE/framework/include/ | |
| cat cppcheck-report/cppcheck.txt | |
| - name: Upload cppcheck report artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: cppcheck-report | |
| path: cppcheck-report/cppcheck.txt | |
| clang-tidy: | |
| name: Run Clang-Tidy | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v5 | |
| with: | |
| submodules: true | |
| lfs: true | |
| - name: Install dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y clang-tidy | |
| - name: Run clang-tidy | |
| run: | | |
| bazel run @hedron_compile_commands//:refresh_all | |
| mkdir -p clang-tidy-report | |
| clang-tidy -p $GITHUB_WORKSPACE/compile_commands.json \ | |
| --config-file=$GITHUB_WORKSPACE/.clang-tidy \ | |
| --export-fixes=clang-tidy-report/clang-tidy-fixes.yaml \ | |
| --quiet \ | |
| $GITHUB_WORKSPACE/framework/src/vx_*.cpp \ | |
| $GITHUB_WORKSPACE/framework/include/vx_*.h* \ | |
| $GITHUB_WORKSPACE/include/VX/vx*.h \ | |
| > clang-tidy-report/clang-tidy.txt \ | |
| 2>&1 || true | |
| cat clang-tidy-report/clang-tidy.txt | |
| - name: Upload clang-tidy report artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: clang-tidy-report | |
| path: | | |
| clang-tidy-report/clang-tidy.txt | |
| clang-tidy-report/clang-tidy-fixes.yaml |