Skip to content

address clang scan warning #519

address clang scan warning

address clang scan warning #519

Workflow file for this run

name: MSVC Windows build
on:
push:
branches: [ '**' ]
pull_request:
branches: [ '**' ]
env:
BUILD_TYPE: Release
jobs:
build:
runs-on: ci-windows
if: ${{ github.repository != 'intel/pcm' }}
steps:
- uses: actions/checkout@v3
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@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@v3.1.1
with:
name: PCMforWindows
path: build/bin/**/*