-
Notifications
You must be signed in to change notification settings - Fork 3
39 lines (30 loc) · 983 Bytes
/
build.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: Build
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
strategy:
matrix:
platform: [x64, x86, ARM64]
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v1.1
- name: Restore
run: msbuild pbench.sln /t:restore /p:Configuration=Release /p:Platform=${{ matrix.platform }}
- name: Build
run: msbuild pbench.sln /t:build /p:Configuration=Release /p:Platform=${{ matrix.platform }} /p:RestorePackages=false
- name: Prepare artifact
run: |
mkdir -Path .\artifact
copy -Path .\_bin\Release-${{ matrix.platform }}\pbench.exe -Destination .\artifact
copy -Path .\_bin\Release-${{ matrix.platform }}\en-US\pbench.msi -Destination .\artifact
- name: Upload build artifact
uses: actions/upload-artifact@v3
with:
name: pbench
path: .\artifact