-
Notifications
You must be signed in to change notification settings - Fork 0
28 lines (26 loc) · 787 Bytes
/
Copy pathcodeQL.yml
File metadata and controls
28 lines (26 loc) · 787 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
name: CodeQL Analysis
on:
push:
branches: ["main"]
jobs:
quality-analysis:
runs-on: windows-latest
permissions:
actions: read
contents: read
security-events: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: cpp
- name: Generate visual Studio solution
run: cmake.exe --no-warn-unused-cli -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -Btarget -G "Visual Studio 17 2022" -T host=x64 -A x64
- name: Build
run: cmake.exe --build target --config Debug
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: "/language:cpp"