-
Notifications
You must be signed in to change notification settings - Fork 415
140 lines (103 loc) · 4.81 KB
/
msbuild.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
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/[email protected]
- name: Restore NuGet packages
working-directory: ${{env.GITHUB_WORKSPACE}}
run: nuget restore ./prj/vs2022 -Project2ProjectTimeOut 300
- name: Host properties
run: wmic cpu get Name,NumberOfCores,NumberOfLogicalProcessors /format:value
- 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=-1 "-ot=log_${{matrix.platform}}_${{matrix.build_type}}.txt" -ts=10
build_and_test_vs2019:
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/[email protected]
- name: Restore NuGet packages
working-directory: ${{env.GITHUB_WORKSPACE}}
run: nuget restore ./prj/vs2019 -Project2ProjectTimeOut 300
- name: Host properties
run: wmic cpu get Name,NumberOfCores,NumberOfLogicalProcessors /format:value
- name: Build
working-directory: ${{env.GITHUB_WORKSPACE}}
run: msbuild /m /p:Configuration=${{matrix.build_type}} /p:Platform=${{matrix.platform}} -maxCpuCount:4 ./prj/vs2019/Simd.sln
- name: Test
working-directory: ${{env.GITHUB_WORKSPACE}}
run: bin/v142/${{matrix.platform}}/${{matrix.build_type}}/Test.exe "-r=." -m=a -tt=-1 "-ot=log_${{matrix.platform}}_${{matrix.build_type}}.txt" -ts=10
build_and_test_vs2017:
runs-on: windows-2019
strategy:
matrix:
build_type: [Debug, Release]
platform: [Win32, x64]
steps:
- uses: actions/checkout@v3
- name: Add MSBuild to PATH
uses: microsoft/[email protected]
- name: Restore NuGet packages
working-directory: ${{env.GITHUB_WORKSPACE}}
run: nuget restore ./prj/vs2017 -Project2ProjectTimeOut 300
- name: Install Windows 8.1 SDK
shell: powershell
run: |
Invoke-WebRequest -Method Get -Uri https://go.microsoft.com/fwlink/p/?LinkId=323507 -OutFile sdksetup.exe -UseBasicParsing
Start-Process -Wait sdksetup.exe -ArgumentList "/q", "/norestart", "/features", "OptionId.WindowsDesktopSoftwareDevelopmentKit", "OptionId.NetFxSoftwareDevelopmentKit"
- name: Host properties
run: wmic cpu get Name,NumberOfCores,NumberOfLogicalProcessors /format:value
- name: Build
working-directory: ${{env.GITHUB_WORKSPACE}}
run: msbuild /m /p:Configuration=${{matrix.build_type}} /p:Platform=${{matrix.platform}} -maxCpuCount:4 ./prj/vs2017/Simd.sln
- name: Test
working-directory: ${{env.GITHUB_WORKSPACE}}
run: bin/v141/${{matrix.platform}}/${{matrix.build_type}}/Test.exe "-r=." -m=a -tt=-1 "-ot=log_${{matrix.platform}}_${{matrix.build_type}}.txt" -ts=10
build_and_test_vs2015:
runs-on: windows-2019
strategy:
matrix:
build_type: [Debug, Release]
platform: [Win32, x64]
steps:
- uses: actions/checkout@v3
- name: Add MSBuild to PATH
uses: microsoft/[email protected]
- name: Restore NuGet packages
working-directory: ${{env.GITHUB_WORKSPACE}}
run: nuget restore ./prj/vs2015 -Project2ProjectTimeOut 300
- name: Install Windows 8.1 SDK
shell: powershell
run: |
Invoke-WebRequest -Method Get -Uri https://go.microsoft.com/fwlink/p/?LinkId=323507 -OutFile sdksetup.exe -UseBasicParsing
Start-Process -Wait sdksetup.exe -ArgumentList "/q", "/norestart", "/features", "OptionId.WindowsDesktopSoftwareDevelopmentKit", "OptionId.NetFxSoftwareDevelopmentKit"
- name: Host properties
run: wmic cpu get Name,NumberOfCores,NumberOfLogicalProcessors /format:value
- name: Build
working-directory: ${{env.GITHUB_WORKSPACE}}
run: msbuild /m /p:Configuration=${{matrix.build_type}} /p:Platform=${{matrix.platform}} -maxCpuCount:4 ./prj/vs2015/Simd.sln
- name: Test
working-directory: ${{env.GITHUB_WORKSPACE}}
run: bin/v140/${{matrix.platform}}/${{matrix.build_type}}/Test.exe "-r=." -m=a -tt=-1 "-ot=log_${{matrix.platform}}_${{matrix.build_type}}.txt" -ts=10