-
Notifications
You must be signed in to change notification settings - Fork 1
321 lines (268 loc) · 8.8 KB
/
github_actions_build.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
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
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
name: build
on:
push:
branches:
- '*'
- '!travis_ccache'
pull_request:
branches:
- '*'
- '!travis_ccache'
schedule:
- cron: '16 0 * * 3,6' # <https://crontab.guru/#16_0_*_*_3,6> - "At 00:16 on Wednesday and Saturday."
jobs:
Linux:
# if: false # Disable this platform temporarily
runs-on: ubuntu-${{ matrix.os-version }}
strategy:
fail-fast: false
matrix:
include:
# maybe add clang5 - which was tested in Travis
- job-name: 'clang6.0'
os-version: '18.04'
c-compiler: 'clang-6.0'
cxx-compiler: 'clang++-6.0'
generator: '"Unix Makefiles"'
- job-name: 'clang8'
os-version: '18.04'
c-compiler: 'clang-8'
cxx-compiler: 'clang++-8'
generator: '"Unix Makefiles"'
- job-name: 'clang9'
os-version: '18.04'
c-compiler: 'clang-9'
cxx-compiler: 'clang++-9'
generator: '"Unix Makefiles"'
- job-name: 'clang10'
os-version: '20.04'
c-compiler: 'clang-10'
cxx-compiler: 'clang++-10'
generator: '"Unix Makefiles"'
# maybe add gcc5 - which was tested in Travis
# maybe add gcc5 - which was tested in Travis
- job-name: 'gcc7'
os-version: '18.04'
c-compiler: 'gcc-7'
cxx-compiler: 'g++-7'
generator: '"Unix Makefiles"'
- job-name: 'gcc8'
os-version: '18.04'
c-compiler: 'gcc-8'
cxx-compiler: 'g++-8'
generator: '"Unix Makefiles"'
- job-name: 'gcc9'
os-version: '18.04'
c-compiler: 'gcc-9'
cxx-compiler: 'g++-9'
generator: '"Unix Makefiles"'
- job-name: 'gcc10'
os-version: '18.04'
c-compiler: 'gcc-10'
cxx-compiler: 'g++-10'
generator: '"Unix Makefiles"'
- job-name: 'gcc10 unity'
os-version: '18.04'
c-compiler: 'gcc-10'
cxx-compiler: 'g++-10'
generator: '"Unix Makefiles" -DCMAKE_UNITY_BUILD=yes -DCMAKE_UNITY_BUILD_BATCH_SIZE=50'
- job-name: 'gcc10 ninja'
os-version: '18.04'
c-compiler: 'gcc-10'
cxx-compiler: 'g++-10'
generator: '"Ninja"'
- job-name: 'gcc10 ninja-unity'
os-version: '18.04'
c-compiler: 'gcc-10'
cxx-compiler: 'g++-10'
generator: '"Ninja" -DCMAKE_UNITY_BUILD=yes -DCMAKE_UNITY_BUILD_BATCH_SIZE=50'
name: Linux ${{ matrix.job-name }}
env:
CC: ${{ matrix.c-compiler }}
CXX: ${{ matrix.cxx-compiler }}
steps:
- uses: actions/checkout@master
- uses: seanmiddleditch/gha-setup-ninja@v3
if: contains(matrix.generator, 'Ninja')
- name: set up python
uses: actions/setup-python@v1
with:
python-version: '3.x'
- uses: ./.github/actions/setup-conan
- name: adjust conan profile to use new ABI for gcc (see issue #1)
if: contains(matrix.job-name, 'gcc')
run: conan profile update settings.compiler.libcxx=libstdc++11 default
- name: Build cmake_invoking_conan
run: |
cd cmake_invoking_conan
./build.sh
- name: Build conan_cmake
run: |
cd conan_cmake
./build.sh
- name: Build conan_cmake_find_package
run: |
cd conan_cmake_find_package
./build.sh
- name: Build fetch_content_approvaltests
run: |
cd fetch_content_approvaltests
./build.sh
- name: Build fetch_content_approvaltests_catch2
run: |
cd fetch_content_approvaltests_catch2
./build.sh
- name: Build dev_approvals_fetch_content
run: |
git clone https://github.com/approvals/ApprovalTests.cpp.git
cd dev_approvals_fetch_content
./build.sh
- name: install boost
run: |
sudo apt-get update -qq
sudo apt-get install -y libboost-all-dev
- name: Build dev_approvals
run: |
./ApprovalTests.cpp/scripts/clone_dependencies.sh
cd dev_approvals
./build.sh
macOS:
# if: false # Disable this platform temporarily
runs-on: macos-${{ matrix.os-version }}
strategy:
fail-fast: false
matrix:
include:
# probably don't add xcode9.4 - which was tested in Travis
- job-name: xcode-10.3
os-version: '10.15'
xcode-version: '10.3'
generator: '"Unix Makefiles"'
- job-name: xcode-11.7
os-version: '10.15'
xcode-version: '11.7'
generator: '"Unix Makefiles"'
- job-name: xcode-12.2
os-version: '10.15'
xcode-version: '12.2'
generator: '"Unix Makefiles"'
- job-name: xcode-11.7-ninja
xcode-version: '11.7'
os-version: '10.15'
generator: '"Ninja"'
name: macOS ${{ matrix.job-name }}
env:
HOMEBREW_NO_ANALYTICS: 1
HOMEBREW_NO_AUTO_UPDATE: 1
HOMEBREW_NO_INSTALL_CLEANUP: 1
DEVELOPER_DIR: '/Applications/Xcode_${{ matrix.xcode-version }}.app/Contents/Developer'
steps:
- uses: actions/checkout@master
- uses: seanmiddleditch/gha-setup-ninja@v3
if: contains(matrix.generator, 'Ninja')
- name: set up python
uses: actions/setup-python@v1
with:
python-version: '3.x'
- uses: ./.github/actions/setup-conan
- name: Build cmake_invoking_conan
run: |
cd cmake_invoking_conan
./build.sh
- name: Build conan_cmake
run: |
cd conan_cmake
./build.sh
- name: Build conan_cmake_find_package
run: |
cd conan_cmake_find_package
./build.sh
- name: Build fetch_content_approvaltests
run: |
cd fetch_content_approvaltests
./build.sh
- name: Build fetch_content_approvaltests_catch2
run: |
cd fetch_content_approvaltests_catch2
./build.sh
- name: Build dev_approvals_fetch_content
run: |
git clone https://github.com/approvals/ApprovalTests.cpp.git
cd dev_approvals_fetch_content
./build.sh
- name: install boost
run: |
brew install boost
- name: Build dev_approvals
run: |
./ApprovalTests.cpp/scripts/clone_dependencies.sh
cd dev_approvals
./build.sh
Windows:
# if: false # Disable windows builds, due to path length errors
runs-on: windows-${{ matrix.os-version }}
strategy:
fail-fast: false
matrix:
include:
- job-name: VS-2017
os-version: '2016'
generator: '"Visual Studio 15 2017"'
- job-name: VS-2019
os-version: '2019'
generator: '"Visual Studio 16 2019"'
- job-name: VS-2019 (clangcl)
os-version: '2019'
generator: '"Visual Studio 16 2019" -T "clangcl"'
name: Windows ${{ matrix.job-name }}
# Need to check out in to shorter directory, to avoid 260-char path-length limit
steps:
- uses: actions/checkout@master
- name: set up python
uses: actions/setup-python@v1
with:
python-version: '3.x'
- uses: ./.github/actions/setup-conan
- name: Build cmake_invoking_conan
shell: bash
run: |
cd cmake_invoking_conan
./build.sh
- name: Build conan_cmake
shell: bash
run: |
cd conan_cmake
./build.sh
- name: Build conan_cmake_find_package
shell: bash
run: |
cd conan_cmake_find_package
./build.sh
- name: Build fetch_content_approvaltests
shell: bash
run: |
cd fetch_content_approvaltests
./build.sh
- name: Build fetch_content_approvaltests_catch2
shell: bash
run: |
cd fetch_content_approvaltests_catch2
./build.sh
- name: Build dev_approvals_fetch_content
shell: bash
run: |
git clone https://github.com/approvals/ApprovalTests.cpp.git
cd dev_approvals_fetch_content
./build.sh
- name: install boost
run: |
${boostroot} = "${env:BOOST_ROOT_1_72_0}"
echo "BOOST_ROOT=${boostroot}" >> ${env:GITHUB_ENV}
echo "BOOST_INCLUDEDIR=${boostroot}\include" >> ${env:GITHUB_ENV}
echo "BOOST_LIBRARYDIR=${boostroot}\lib" >> ${env:GITHUB_ENV}
- name: Build dev_approvals
shell: bash
run: |
./ApprovalTests.cpp/scripts/clone_dependencies.sh
cd dev_approvals
./build.sh