CodeQL #1167
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: "CodeQL" | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: '0 3 * * 6' | |
| jobs: | |
| analyze: | |
| name: Analyze | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v7 | |
| with: | |
| submodules: true | |
| persist-credentials: false | |
| - name: Setup environment | |
| uses: ./.github/actions/setup-build-env | |
| with: | |
| runs-on: ubuntu-latest | |
| get-build-deps: true | |
| - name: Initialize CodeQL | |
| uses: github/codeql-action/init@v4 | |
| with: | |
| languages: cpp | |
| queries: security-extended,security-and-quality | |
| - name: Build | |
| run: | | |
| rm -rf build Configuration.cmake | |
| echo 'set(CMAKE_C_COMPILER clang CACHE STRING "")' >> Configuration.cmake | |
| echo 'set(CMAKE_CXX_COMPILER clang++ CACHE STRING "")' >> Configuration.cmake | |
| cmake -C Configuration.cmake -B build . | |
| cmake --build build -j6 | |
| - name: Perform CodeQL Analysis | |
| uses: github/codeql-action/analyze@v4 |