Skip to content

CodeQL

CodeQL #101

name: "CodeQL"
on:
push:
branches: [ "master" ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ "master" ]
schedule:
- cron: '24 4 * * 0'
jobs:
analyze:
name: Analyze
runs-on: ${{ matrix.os }}
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
os: [ubuntu-22.04, macos-12, windows-2022]
language: [ 'cpp' ]
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
- name: Autobuild Linux and macOS
uses: github/codeql-action/autobuild@v2
if: matrix.os != 'windows-2022'
- name: Windows build
if: matrix.os == 'windows-2022'
run: |
cmake -G "Visual Studio 17" . -DBUILD_TESTS=no -DCODE_COVERAGE=no
cmake --build . --config Debug
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2