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

60 lines
1.1 KiB
YAML
Raw Normal View History

2021-09-03 23:55:59 +00:00
name: "CodeQL"
on:
push:
branches: [master]
paths-ignore:
- '.gitignore'
- '.gitattributes'
- 'res/**'
- '**.cmd'
- '**.md'
- '**.rc'
- '**.sh'
- '**.txt'
- '**.xml'
2021-09-03 23:55:59 +00:00
pull_request:
branches: [master]
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
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@v4
2021-09-07 00:01:56 +00:00
2021-09-03 23:55:59 +00:00
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
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@v2
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@v3