Skip to content

CodeQL-WiX4

CodeQL-WiX4 #98

# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL"
on:
push:
tags:
- wix3-v*
workflow_dispatch:
jobs:
analyze:
name: Analyze
runs-on: windows-2019
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: [ 'cpp' ]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
# Learn more about CodeQL language support at https://git.io/codeql-language-support
steps:
- uses: actions/[email protected]
with:
submodules: 'true'
- uses: microsoft/setup-msbuild@v1
- name: Build 3rd-party code without scan
run: |
choco install windows-adk-all --version=10.1.22621.1
nuget restore
cmake.exe -G "Visual Studio 16 2019" -T v142,host=x86 -A Win32 .\protobuf\cmake -Dprotobuf_BUILD_TESTS=OFF -B build\protobuf
cmake.exe --build build\protobuf --config Release
cmake.exe -G "Visual Studio 16 2019" -T v142,host=x86 -A Win32 .\poco -DPOCO_STATIC=ON -DPOCO_MT=ON -B build\poco
cmake.exe --build build\poco --config Release
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
- name: Build & scan
run: msbuild PanelSwWixExtension.sln -p:Configuration=Release -p:Platform=x86 -p:DisableNuget=true -p:NugetDir=""
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2