CodeQL #326
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |