catch exception in getMaxNumOfCBoxes to allow the fall-back perf API … #485
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/**/* |