-
Notifications
You must be signed in to change notification settings - Fork 450
42 lines (31 loc) · 1.25 KB
/
msbuild.yml
File metadata and controls
42 lines (31 loc) · 1.25 KB
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
40
41
42
name: MSBuild
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
permissions:
contents: read
jobs:
build_and_test_vs2022:
runs-on: windows-latest
strategy:
matrix:
build_type: [Debug, Release]
platform: [Win32, x64]
steps:
- uses: actions/checkout@v3
- name: Add MSBuild to PATH
uses: microsoft/setup-msbuild@v2
- name: Restore NuGet packages
working-directory: ${{env.GITHUB_WORKSPACE}}
run: nuget restore ./prj/vs2022 -Project2ProjectTimeOut 300
- name: Host properties
shell: powershell
run: echo "$((Get-CimInstance Win32_Processor).Name), $((Get-CimInstance Win32_Processor).NumberOfCores) cores, $((Get-CimInstance Win32_Processor).NumberOfLogicalProcessors) threads."
- name: Build
working-directory: ${{env.GITHUB_WORKSPACE}}
run: msbuild /m /p:Configuration=${{matrix.build_type}} /p:Platform=${{matrix.platform}} -maxCpuCount:4 ./prj/vs2022/Simd.sln
- name: Test
working-directory: ${{env.GITHUB_WORKSPACE}}
run: bin\v143\${{matrix.platform}}\${{matrix.build_type}}\Test.exe "-r=." -m=a -tt=4 "-ot=log_${{matrix.platform}}_${{matrix.build_type}}.txt" -ts=10