codeql.yml 951 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. name: CodeQL
  2. on:
  3. push:
  4. branches: ["master"]
  5. tags: ["4.*"]
  6. pull_request:
  7. branches: ["master"]
  8. schedule:
  9. - cron: "6 13 * * 4"
  10. concurrency:
  11. group: ${{ github.workflow }}-${{ github.ref }}
  12. cancel-in-progress: true
  13. env:
  14. BUILD_TYPE: Release
  15. jobs:
  16. analyze:
  17. runs-on: ubuntu-latest
  18. permissions:
  19. security-events: write
  20. steps:
  21. - uses: actions/checkout@v4
  22. - name: Install dependencies
  23. uses: ./.github/workflows/actions/ubuntu-build-deps
  24. with:
  25. SUDO: true
  26. - name: Initialize CodeQL
  27. uses: github/codeql-action/init@v3
  28. with:
  29. languages: cpp
  30. - name: Configure
  31. run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
  32. - name: Build
  33. run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
  34. - name: Perform CodeQL Analysis
  35. uses: github/codeql-action/analyze@v3