mirror of
https://github.com/pbatard/rufus.git
synced 2024-08-14 23:57:05 +00:00
51569d9e13
* Also update copyright year and improve uprintf error handling * Also bump GitHub Actions dependencies. Note that we do NOT want to update to upload-artifact v4 because it BREAKS the creation of artifacts from matrix. See: https://github.com/actions/upload-artifact#v4---whats-new * Closes #2382 * Closes #2383
59 lines
1.2 KiB
YAML
59 lines
1.2 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
|
|
BUILD_CONFIGURATION: Release
|
|
TARGET_PLATFORM: x64
|
|
|
|
jobs:
|
|
CodeQL-Build:
|
|
runs-on: windows-latest
|
|
|
|
permissions:
|
|
security-events: write
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Initialize CodeQL
|
|
uses: github/codeql-action/init@v3
|
|
with:
|
|
languages: cpp
|
|
|
|
- name: Add MSBuild to PATH
|
|
uses: microsoft/setup-msbuild@v1.1
|
|
with:
|
|
msbuild-architecture: x64
|
|
|
|
- name: Build
|
|
run: msbuild ${{env.SOLUTION_FILE_PATH}} /m /p:Configuration=${{ env.BUILD_CONFIGURATION}},Platform=${{ env.TARGET_PLATFORM }}
|
|
|
|
- name: Perform CodeQL Analysis
|
|
uses: github/codeql-action/analyze@v3
|