mirror of https://github.com/pbatard/rufus.git
52 lines
1.0 KiB
YAML
52 lines
1.0 KiB
YAML
|
name: "CodeQL"
|
||
|
|
||
|
on:
|
||
|
push:
|
||
|
branches: [master]
|
||
|
paths-ignore:
|
||
|
- '.gitignore'
|
||
|
- '.gitattributes'
|
||
|
- 'res/**'
|
||
|
- '**.cmd'
|
||
|
- '**.md'
|
||
|
- '**.rc'
|
||
|
- '**.sh'
|
||
|
- '**.txt'
|
||
|
- '**.xml'
|
||
|
pull_request:
|
||
|
branches: [master]
|
||
|
paths-ignore:
|
||
|
- '.gitignore'
|
||
|
- '.gitattributes'
|
||
|
- 'res/**'
|
||
|
- '**.cmd'
|
||
|
- '**.md'
|
||
|
- '**.rc'
|
||
|
- '**.sh'
|
||
|
- '**.txt'
|
||
|
- '**.xml'
|
||
|
|
||
|
env:
|
||
|
SOLUTION_FILE_PATH: ./rufus.sln
|
||
|
|
||
|
jobs:
|
||
|
CodeQL-Build:
|
||
|
runs-on: windows-latest
|
||
|
|
||
|
permissions:
|
||
|
security-events: write
|
||
|
|
||
|
steps:
|
||
|
- name: Checkout repository
|
||
|
uses: actions/checkout@v2
|
||
|
- name: Initialize CodeQL
|
||
|
uses: github/codeql-action/init@v1
|
||
|
with:
|
||
|
languages: cpp
|
||
|
- name: Add MSBuild to PATH
|
||
|
uses: microsoft/setup-msbuild@v1
|
||
|
- name: Build
|
||
|
run: msbuild ${{env.SOLUTION_FILE_PATH}} /m /p:Configuration=Debug,Platform=x64
|
||
|
- name: Perform CodeQL Analysis
|
||
|
uses: github/codeql-action/analyze@v1
|