-
Notifications
You must be signed in to change notification settings - Fork 0
231 lines (187 loc) · 6.77 KB
/
main.yml
File metadata and controls
231 lines (187 loc) · 6.77 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
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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
name: "CI"
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
pull_request:
branches: [master]
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
ubuntu-16-04_gcc-7-5_code-coverage:
name: "Code coverage; Ubuntu 16.04, GCC-7.5"
# The type of runner that the job will run on
runs-on: ubuntu-16.04
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- name: Build and collect code coverage
run: |
cd build
cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_COMPILER=gcc-7 -DCMAKE_CXX_COMPILER=g++-7 -DCOLLECT_CODE_COVERAGE=OTHER -DGCOV_PATH=gcov-7 ..
cmake --build .
ctest -C Debug --output-on-failure
- name: Upload code coverage
run: |
curl --output .codecov.sh https://codecov.io/bash
bash ./.codecov.sh -Z -x 'gcov-7' || echo 'Codecov did not collect coverage reports'
ubuntu-latest_gcc-8-4_tests-debug:
name: "Tests; Ubuntu latest, GCC-8.4, Debug"
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- name: Build
run: |
cd build
cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_COMPILER=gcc-8 -DCMAKE_CXX_COMPILER=g++-8 ..
cmake --build .
- name: Run tests
run: |
cd build
ctest -C Debug --verbose
ubuntu-latest_gcc-9-3_tests-release:
name: "Tests; Ubuntu latest, GCC-9.3, Release"
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- name: Build
run: |
cd build
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=gcc-9 -DCMAKE_CXX_COMPILER=g++-9 ..
cmake --build .
- name: Run tests
run: |
cd build
ctest -C Release --verbose
ubuntu-latest_clang-8_tests-debug:
name: "Tests; Ubuntu latest, Clang-8, Debug"
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- name: Build
run: |
cd build
cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_COMPILER=clang-8 -DCMAKE_CXX_COMPILER=clang++-8 ..
cmake --build .
- name: Run tests
run: |
cd build
ctest -C Debug --verbose
ubuntu-latest_clang-9_tests-release:
name: "Tests; Ubuntu latest, Clang-9, Release"
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- name: Build
run: |
cd build
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=clang-9 -DCMAKE_CXX_COMPILER=clang++-9 ..
cmake --build .
- name: Run tests
run: |
cd build
ctest -C Release --verbose
macos-latest_clang_tests-release:
name: "Tests; macOS latest, Clang, Release"
# The type of runner that the job will run on
runs-on: macos-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- name: Build
run: |
cd build
clang++ --version
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ ..
cmake --build .
- name: Run tests
run: |
cd build
ctest -C Release --verbose
macos-latest_clang_tests-debug:
name: "Tests; macOS latest, Clang, Debug"
# The type of runner that the job will run on
runs-on: macos-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- name: Build
run: |
cd build
clang++ --version
cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ ..
cmake --build .
- name: Run tests
run: |
cd build
ctest -C Debug --verbose
windows-server-2016_msvs-2017_tests:
name: "Tests; Windows Server 2016, MSVS 2017, Release+Debug"
# The type of runner that the job will run on
runs-on: windows-2016
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- name: Configure
run: |
cd build
cmake ..
- name: Build (Debug)
run: |
cd build
cmake --build . --config Debug
- name: Run tests (Debug)
run: |
cd build
ctest -C Debug --verbose
- name: Build (Release)
run: |
cd build
cmake --build . --config Release
- name: Run tests (Release)
run: |
cd build
ctest -C Release --verbose
windows-server-2019_msvs-2019_tests:
name: "Tests; Windows Server 2019, MSVS 2019, Release+Debug"
# The type of runner that the job will run on
runs-on: windows-2019
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- name: Configure
run: |
cd build
cmake ..
- name: Build (Debug)
run: |
cd build
cmake --build . --config Debug
- name: Run tests (Debug)
run: |
cd build
ctest -C Debug --verbose
- name: Build (Release)
run: |
cd build
cmake --build . --config Release
- name: Run tests (Release)
run: |
cd build
ctest -C Release --verbose