@@ -131,25 +131,95 @@ jobs:
131
131
fail-fast : false
132
132
matrix :
133
133
include :
134
- - { toolset: gcc-11, install: g++-11, os: ubuntu-22.04, cxxstd: '17', build-type: 'Debug', ldflags: '' }
135
- - { toolset: gcc-11, install: g++-11, os: ubuntu-22.04, cxxstd: '20', build-type: 'Release', ldflags: '' }
136
- - { toolset: clang-11, install: clang-11, os: ubuntu-22.04, cxxstd: '17', build-type: 'Debug', ldflags: '' }
137
- - { toolset: clang-11, install: clang-11, os: ubuntu-22.04, cxxstd: '20', build-type: 'Debug', ldflags: '' }
138
- - { toolset: clang-13, install: clang-13, os: ubuntu-22.04, cxxstd: '17', build-type: 'Release', ldflags: '' }
139
- - { toolset: clang-13, install: clang-13, os: ubuntu-22.04, cxxstd: '20', build-type: 'Release', ldflags: '' }
140
- - { toolset: clang-14, install: 'clang-14 libc++-14-dev libc++abi-14-dev', os: ubuntu-22.04, cxxstd: '17', build-type: 'Debug', cxxflags: '-stdlib=libc++', ldflags: '-lc++' }
141
- - { toolset: clang-14, install: 'clang-14 libc++-14-dev libc++abi-14-dev', os: ubuntu-22.04, cxxstd: '20', build-type: 'Release', cxxflags: '-stdlib=libc++', ldflags: '-lc++' }
134
+ - toolset : gcc-11
135
+ install : g++-11
136
+ os : ubuntu-latest
137
+ cxxstd : ' 17'
138
+ build-type : ' Debug'
139
+ ldflags : ' '
140
+
141
+ - toolset : gcc-11
142
+ install : g++-11
143
+ os : ubuntu-22.04
144
+ cxxstd : ' 20'
145
+ build-type : ' Release'
146
+ ldflags : ' '
147
+
148
+ - toolset : clang-11
149
+ install : clang-11
150
+ os : ubuntu-latest
151
+ container : ubuntu:22.04
152
+ cxxstd : ' 17'
153
+ build-type : ' Debug'
154
+ ldflags : ' '
155
+
156
+ - toolset : clang-11
157
+ install : clang-11
158
+ os : ubuntu-latest
159
+ container : ubuntu:22.04
160
+ cxxstd : ' 20'
161
+ build-type : ' Debug'
162
+ ldflags : ' '
163
+
164
+ - toolset : clang-13
165
+ install : clang-13
166
+ os : ubuntu-latest
167
+ container : ubuntu:22.04
168
+ cxxstd : ' 17'
169
+ build-type : ' Release'
170
+ ldflags : ' '
171
+
172
+ - toolset : clang-13
173
+ install : clang-13
174
+ os : ubuntu-latest
175
+ container : ubuntu:22.04
176
+ cxxstd : ' 20'
177
+ build-type : ' Release'
178
+ ldflags : ' '
179
+
180
+ - toolset : clang-14,
181
+ install : ' clang-14 libc++-14-dev libc++abi-14-dev'
182
+ os : ubuntu-latest
183
+ container : ubuntu:22.04
184
+ cxxstd : ' 17'
185
+ build-type : ' Debug'
186
+ cxxflags : ' -stdlib=libc++'
187
+ ldflags : ' -lc++'
188
+
189
+ - toolset : clang-14
190
+ install : ' clang-14 libc++-14-dev libc++abi-14-dev'
191
+ os : ubuntu-latest
192
+ container : ubuntu:22.04
193
+ cxxstd : ' 20'
194
+ build-type : ' Release'
195
+ cxxflags : ' -stdlib=libc++'
196
+ ldflags : ' -lc++'
197
+
142
198
runs-on : ${{ matrix.os }}
199
+ container : ${{matrix.container}}
143
200
env :
144
201
CXXFLAGS : ${{matrix.cxxflags}} -Wall -Wextra
145
202
LDFLAGS : ${{matrix.ldflags}}
146
203
CMAKE_BUILD_PARALLEL_LEVEL : 4
204
+
205
+ services :
206
+ redis :
207
+ image : redis
208
+
147
209
steps :
148
210
- name : Checkout
149
211
uses : actions/checkout@v3
150
212
213
+ - name : Setup container environment
214
+ if : matrix.container
215
+ run : |
216
+ apt-get update
217
+ apt-get -y install sudo python3 git g++ libssl-dev protobuf-compiler redis-server
218
+
151
219
- name : Install dependencies
152
- run : sudo apt-get -y install cmake protobuf-compiler redis-server python3 ${{ matrix.install }}
220
+ run : |
221
+ sudo apt-get update
222
+ sudo apt-get -y install cmake protobuf-compiler redis-server python3 ${{ matrix.install }}
153
223
154
224
- name : Setup Boost
155
225
run : ./tools/ci.py setup-boost --source-dir=$(pwd)
@@ -209,15 +279,30 @@ jobs:
209
279
fail-fast : false
210
280
matrix :
211
281
include :
212
- - { toolset: gcc-11, install: g++-11, cxxstd: "11,17,20" } # Having C++11 shouldn't break the build
213
- - { toolset: clang-14, install: clang-14, cxxstd: "17,20" }
214
- runs-on : ubuntu-22.04
282
+ - toolset : gcc-11
283
+ install : g++-11
284
+ cxxstd : " 11,17,20" # Having C++11 shouldn't break the build
285
+ - toolset : clang-14
286
+ install : clang-14
287
+ os : ubuntu-latest
288
+ container : ubuntu:22.04
289
+ cxxstd : " 17,20"
290
+ runs-on : ${{ matrix.os }}
291
+ container : ${{matrix.container}}
215
292
steps :
216
293
- name : Checkout
217
294
uses : actions/checkout@v3
218
295
296
+ - name : Setup container environment
297
+ if : matrix.container
298
+ run : |
299
+ apt-get update
300
+ apt-get -y install sudo python3 git g++ libssl-dev
301
+
219
302
- name : Install dependencies
220
- run : sudo apt-get -y install python3 ${{ matrix.install }}
303
+ run : |
304
+ sudo apt-get update
305
+ sudo apt-get -y install python3 ${{ matrix.install }}
221
306
222
307
- name : Setup Boost
223
308
run : ./tools/ci.py setup-boost --source-dir=$(pwd)
0 commit comments