2022-02-04 17:41:44 +00:00
|
|
|
# Disabled on account of https://github.com/github/codeql-action/issues/850
|
2021-09-03 23:55:59 +00:00
|
|
|
name: "CodeQL"
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [master]
|
|
|
|
pull_request:
|
|
|
|
branches: [master]
|
|
|
|
|
|
|
|
env:
|
|
|
|
SOLUTION_FILE_PATH: ./rufus.sln
|
2021-09-07 22:39:04 +00:00
|
|
|
BUILD_CONFIGURATION: Release
|
2021-09-07 00:01:56 +00:00
|
|
|
TARGET_PLATFORM: x64
|
2021-09-03 23:55:59 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
CodeQL-Build:
|
2022-05-31 15:30:19 +00:00
|
|
|
runs-on: windows-latest
|
2021-09-03 23:55:59 +00:00
|
|
|
|
|
|
|
permissions:
|
|
|
|
security-events: write
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout repository
|
|
|
|
uses: actions/checkout@v2
|
2021-09-07 00:01:56 +00:00
|
|
|
|
2021-09-03 23:55:59 +00:00
|
|
|
- name: Initialize CodeQL
|
|
|
|
uses: github/codeql-action/init@v1
|
|
|
|
with:
|
|
|
|
languages: cpp
|
2021-09-07 00:01:56 +00:00
|
|
|
|
2021-09-03 23:55:59 +00:00
|
|
|
- name: Add MSBuild to PATH
|
2021-11-16 17:50:20 +00:00
|
|
|
uses: microsoft/setup-msbuild@v1.1
|
|
|
|
with:
|
|
|
|
msbuild-architecture: x64
|
2021-09-07 00:01:56 +00:00
|
|
|
|
2021-09-03 23:55:59 +00:00
|
|
|
- name: Build
|
2021-09-07 00:01:56 +00:00
|
|
|
run: msbuild ${{env.SOLUTION_FILE_PATH}} /m /p:Configuration=${{ env.BUILD_CONFIGURATION}},Platform=${{ env.TARGET_PLATFORM }}
|
|
|
|
|
2021-09-03 23:55:59 +00:00
|
|
|
- name: Perform CodeQL Analysis
|
|
|
|
uses: github/codeql-action/analyze@v1
|