-
Notifications
You must be signed in to change notification settings - Fork 23
93 lines (86 loc) · 2.69 KB
/
c-cpp.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
name: C/C++ CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
Win32-DLL:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: recursive
- name: Install MSBuild
uses: microsoft/setup-msbuild@v1.0.2
- name: Build
run: msbuild.exe RA_Integration.sln -t:RA_Integration -p:Configuration=Release -p:Platform=Win32
Win64-DLL:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: recursive
- name: Install MSBuild
uses: microsoft/setup-msbuild@v1.0.2
- name: Build
run: msbuild.exe RA_Integration.sln -t:RA_Integration -p:Configuration=Release -p:Platform=x64
Win32-Tests:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: recursive
- name: Install MSBuild
uses: microsoft/setup-msbuild@v1.0.2
- name: Install VSTest
uses: Malcolmnixon/Setup-VSTest@v4
- name: Build
run: msbuild.exe -m RA_Integration.sln -p:Configuration=Release -p:Platform=Win32
- name: Run DLL Tests
run: vstest.console bin\Win32\Release\tests\RA_Integration\RA_Integration.Tests.dll
- name: Run Interface Tests
# requires the DLL to have been built
run: vstest.console bin\Win32\Release\tests\RA_Interface\RA_Interface.Tests.dll
Win64-Tests:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: recursive
- name: Install MSBuild
uses: microsoft/setup-msbuild@v1.0.2
- name: Install VSTest
uses: Malcolmnixon/Setup-VSTest@v4
- name: Build
run: msbuild.exe -m RA_Integration.sln -p:Configuration=Release -p:Platform=x64
- name: Run DLL Tests
run: vstest.console bin\x64\Release\tests\RA_Integration\RA_Integration.Tests.dll
- name: Run Interface Tests
run: vstest.console bin\x64\Release\tests\RA_Interface\RA_Interface.Tests.dll
Win32-Analysis:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: recursive
- name: Install MSBuild
uses: microsoft/setup-msbuild@v1.0.2
- name: Build
run: msbuild.exe RA_Integration.sln -p:Configuration=Analysis -p:Platform=Win32 /WarnAsError
Win64-Analysis:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: recursive
- name: Install MSBuild
uses: microsoft/setup-msbuild@v1.0.2
- name: Build
run: msbuild.exe RA_Integration.sln -p:Configuration=Analysis -p:Platform=x64 /WarnAsError