Refactor and modify code (step #3) #14
This file contains hidden or 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 Analysis | |
on: | |
push: | |
branches: [ "main" , "dev" ] | |
paths-ignore: | |
- '**/*.md' | |
- '**/*.ini' | |
workflow_dispatch: | |
jobs: | |
analyze: | |
name: Analyze | |
runs-on: windows-latest | |
permissions: | |
# required for all workflows | |
security-events: write | |
# required to fetch internal or private CodeQL packs | |
packages: read | |
# only required for workflows in private repositories | |
actions: read | |
contents: read | |
strategy: | |
fail-fast: false | |
matrix: | |
configuration: [ "Release" ] | |
arch: [ x64 ] | |
include: | |
- arch: x64 | |
platform: x64 | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
- name: Initialize CodeQL | |
uses: github/codeql-action/init@v3 | |
with: | |
queries: security-and-quality | |
languages: c-cpp | |
- name: Add msbuild to PATH | |
uses: microsoft/setup-msbuild@v2 | |
- name: Build ${{ matrix.arch }} | |
run: msbuild "darkmode32plus.sln" /m /p:configuration="${{ matrix.configuration }}" /p:platform="${{ matrix.platform }}" /t:darkmode32plus | |
- name: Perform CodeQL Analysis | |
uses: github/codeql-action/analyze@v3 |