-
Notifications
You must be signed in to change notification settings - Fork 0
71 lines (59 loc) · 2.06 KB
/
build_and_test_x64.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
name: Build and Test VS C++ x64
on:
push:
branches:
- main
paths-ignore:
- '**/**.md'
pull_request:
branches:
- main
paths-ignore:
- '**/**.md'
jobs:
run-ms-build-vstest:
runs-on: windows-latest
name: Run MSBuild and VSTest
steps:
#Checkout code
- name: Checkout code
id: checkout_code
uses: actions/checkout@v3
#Locate MSBuild.eze and add to PATH
- name: Add MSBuild to PATH
id: setup_msbuild
uses: microsoft/setup-msbuild@v1
#Run MSBuild Debug
- name: Run MSBuild Debug
id: run_msbuild_debug
working-directory: .\
run: msbuild.exe .\Trajectory_Hotspots\ /property:Configuration=Debug
#Run MSBuild Release
- name: Run MSBuild Release
id: run_msbuild_release
working-directory: .\
run: msbuild.exe .\Trajectory_Hotspots\ /property:Configuration=Release
#Run MSBuild Release_with_fsanitize
- name: Run MSBuild Release with address sanitizing
id: run_msbuild_release_fsanitize
working-directory: .\
run: msbuild.exe .\Trajectory_Hotspots\ /property:Configuration=Release_with_fsanitize
#Locate vstext.console.exe and add to PATH
- name: Setup VSTest PATH
id: setup_vstest
uses: darenm/Setup-VSTest@v1.2
#Run VSTest_Debug
- name: Run VSTest Debug
id: run_vstest_debug
working-directory: .\Trajectory_Hotspots\x64\Debug\
run: vstest.console.exe /Platform:x64 .\Test_Trajectory_Hotspots.dll
#Run VSTest_Release
- name: Run VSTest Release
id: run_vstest_release
working-directory: .\Trajectory_Hotspots\x64\Release\
run: vstest.console.exe /Platform:x64 .\Test_Trajectory_Hotspots.dll
#Run VSTest_Release_with_fsanitize
- name: Run VSTest Release with address sanitizing
id: run_vstest_release_fsanitize
working-directory: .\Trajectory_Hotspots\x64\Release_with_fsanitize\
run: vstest.console.exe /Platform:x64 .\Test_Trajectory_Hotspots.dll