Skip to content

Bump github/codeql-action from 2.2.4 to 3.22.12 #577

Bump github/codeql-action from 2.2.4 to 3.22.12

Bump github/codeql-action from 2.2.4 to 3.22.12 #577

Workflow file for this run

name: MSVC Windows build
on:
push:
branches: [ '**' ]
pull_request:
branches: [ '**' ]
env:
BUILD_TYPE: Release
permissions:
contents: read
jobs:
build:
runs-on: ci-windows
if: ${{ github.repository != 'intel/pcm' }}
steps:
- name: Harden Runner
uses: step-security/harden-runner@eb238b55efaa70779f274895e782ed17c84f2895 # v2.6.1
with:
egress-policy: audit
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
with:
submodules: recursive
- name: Configure CMake
run: |
if (Test-Path ${{github.workspace}}\build){ Remove-Item ${{github.workspace}}\build -Recurse }
cmake -B ${{github.workspace}}\build
- name: Build
run: |
cmake --build ${{github.workspace}}\build --config ${{env.BUILD_TYPE}} --parallel
- name: Add MSBuild to PATH
uses: microsoft/setup-msbuild@34cfbaee7f672c76950673338facd8a73f637506 # v1.1.3
- name: Build MSR driver
run: |
chdir ${{github.workspace}}\src\WinMSRDriver
msbuild MSR.vcxproj /p:Configuration=Release,Platform=x64 /t:Clean,Build /m
- name: upload-artifact
uses: actions/upload-artifact@83fd05a356d7e2593de66fc9913b3002723633cb # v3.1.1
with:
name: PCMforWindows
path: build/bin/**/*