1
1
Fork 0
mirror of https://github.com/pbatard/rufus.git synced 2024-08-14 23:57:05 +00:00
rufus/.github/workflows/codeql.yml

40 lines
819 B
YAML
Raw Normal View History

2021-09-03 23:55:59 +00:00
name: "CodeQL"
on:
push:
branches: [master]
pull_request:
branches: [master]
env:
SOLUTION_FILE_PATH: ./rufus.sln
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:
runs-on: windows-latest
2021-09-03 23:55:59 +00:00
permissions:
security-events: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
2021-09-07 00:01:56 +00:00
2021-09-03 23:55:59 +00:00
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
2021-09-03 23:55:59 +00:00
with:
languages: cpp
2021-09-07 00:01:56 +00:00
2021-09-03 23:55:59 +00:00
- name: Add MSBuild to PATH
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@v2