2021-09-03 23:55:59 +00:00
|
|
|
name: "CodeQL"
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [master]
|
2023-02-17 12:56:10 +00:00
|
|
|
paths-ignore:
|
|
|
|
- '.gitignore'
|
|
|
|
- '.gitattributes'
|
|
|
|
- 'res/**'
|
|
|
|
- '**.cmd'
|
|
|
|
- '**.md'
|
|
|
|
- '**.rc'
|
|
|
|
- '**.sh'
|
|
|
|
- '**.txt'
|
|
|
|
- '**.xml'
|
2021-09-03 23:55:59 +00:00
|
|
|
pull_request:
|
|
|
|
branches: [master]
|
2023-02-17 12:56:10 +00:00
|
|
|
paths-ignore:
|
|
|
|
- '.gitignore'
|
|
|
|
- '.gitattributes'
|
|
|
|
- 'res/**'
|
|
|
|
- '**.cmd'
|
|
|
|
- '**.md'
|
|
|
|
- '**.rc'
|
|
|
|
- '**.sh'
|
|
|
|
- '**.txt'
|
|
|
|
- '**.xml'
|
2021-09-03 23:55:59 +00:00
|
|
|
|
|
|
|
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
|
2022-06-23 12:59:21 +00:00
|
|
|
uses: actions/checkout@v3
|
2021-09-07 00:01:56 +00:00
|
|
|
|
2021-09-03 23:55:59 +00:00
|
|
|
- name: Initialize CodeQL
|
2022-06-23 12:59:21 +00:00
|
|
|
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
|
2022-12-15 17:40:02 +00:00
|
|
|
uses: microsoft/setup-msbuild@v1
|
2021-11-16 17:50:20 +00:00
|
|
|
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
|
2022-06-23 12:59:21 +00:00
|
|
|
uses: github/codeql-action/analyze@v2
|