Skip to content

CodeQL

CodeQL #1066

name: "CodeQL"
on:
schedule:
- cron: '17 6 * * *'
workflow_dispatch:
env:
BUILD_TYPE: Release
jobs:
analyze:
name: Analyze
runs-on: windows-latest
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: [ 'cpp' ]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- run: mkdir ${{github.workspace}}/build
- name: Configure CMake
run: cmake -G "Visual Studio 17 2022" -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
- run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} --target check_build
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3