-
Notifications
You must be signed in to change notification settings - Fork 2
63 lines (59 loc) · 2 KB
/
codeql-analysis.yml
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: "CodeQL"
on:
push:
branches: [ master, dev ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ master, dev ]
schedule:
- cron: '42 0 * * 1'
jobs:
analyze:
name: CodeQL Analysis
runs-on: windows-latest
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
arch:
- amd64
language: [ 'cpp' ]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
# Learn more:
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed
steps:
# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl
- name: Install Ninja
run: choco install ninja
- name: Install Vulkan SDK
uses: humbletim/install-vulkan-sdk@v1.1.1
with:
version: 1.3.239.0
cache: true
- name: Install Visual Studio 2022 Community
run: choco install visualstudio2022community
- name: Install VS2022 gamedev extensions
run: choco install visualstudio2022-workload-nativegame --package-parameters "--channelId VisualStudio.17.Release --productId Microsoft.VisualStudio.Product.Community"
- name: Setup VS dev enviroment
uses: ilammy/msvc-dev-cmd@v1
with:
arch: ${{ matrix.arch }}
- name: Checkout repository
uses: actions/checkout@v2
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: ${{ matrix.language }}
config-file: ./.github/codeql/config.yml
- name: Build project
run: |
.\build.ps1 init
.\build.ps1 gen CI
.\build.ps1 CI
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2