-
Notifications
You must be signed in to change notification settings - Fork 478
39 lines (34 loc) · 1007 Bytes
/
ci-windows.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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/[email protected]
- 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/[email protected]
with:
name: PCMforWindows
path: build/bin/**/*