@@ -5,6 +5,7 @@ on: [push, workflow_dispatch, pull_request] # Trigger for every push as well as
5
5
# Repeat up to 5 times to deal with flaky tests.
6
6
env :
7
7
CTEST_OPTIONS : " -V --repeat until-pass:5"
8
+ MACOS_OPENSSL_ROOT_DIR : " /opt/homebrew/Cellar/openssl@3/3.3.0"
8
9
9
10
jobs :
10
11
ubuntu-clang-openssl :
@@ -239,41 +240,30 @@ jobs:
239
240
build-type : Release
240
241
run-test : true
241
242
ctest-options : ${{ env.CTEST_OPTIONS }}
242
-
243
- macos-clang-openssl :
243
+
244
+ macos-clang-ssl :
245
+ strategy :
246
+ matrix :
247
+ buildType : [Debug, Release]
244
248
runs-on : macos-latest
245
249
steps :
246
- - name : Install OpenSSL
247
- run : |
248
- brew install openssl
249
- echo 'export PATH="/usr/local/opt/openssl/bin:$PATH"' >> /Users/runner/.bash_profile
250
- source ~/.bash_profile
251
250
- name : Checkout
252
251
uses : actions/checkout@v3
253
252
- name : " Build & Test"
254
253
env :
255
254
CPR_BUILD_TESTS : ON
256
- CPR_BUILD_TESTS_SSL : ON
257
- CPR_FORCE_OPENSSL_BACKEND : ON
258
- OPENSSL_ROOT_DIR : " /usr/local/opt/openssl"
259
- OPENSSL_LIBRARIES : " /usr/local/opt/openssl/lib"
260
- LDFLAGS : " -L/usr/local/opt/openssl/lib"
261
- CPPFLAGS : " -I/usr/local/opt/openssl/include"
262
- PKG_CONFIG_PATH : " /usr/local/opt/openssl/lib/pkgconfig"
255
+ CPR_BUILD_TESTS_SSL : OFF
263
256
uses : ashutoshvarma/action-cmake-build@master
264
257
with :
265
258
build-dir : ${{ github.workspace }}/build
266
259
source-dir : ${{ github.workspace }}
267
260
cc : clang
268
261
cxx : clang++
269
- build-type : Release
262
+ build-type : ${{ matrix.buildType }}
270
263
run-test : true
271
264
ctest-options : ${{ env.CTEST_OPTIONS }}
272
265
273
- macos-clang-ssl :
274
- strategy :
275
- matrix :
276
- buildType : [Debug, Release]
266
+ macos-clang-darwinssl :
277
267
runs-on : macos-latest
278
268
steps :
279
269
- name : Checkout
@@ -282,26 +272,38 @@ jobs:
282
272
env :
283
273
CPR_BUILD_TESTS : ON
284
274
CPR_BUILD_TESTS_SSL : OFF
275
+ CPR_FORCE_DARWINSSL_BACKEND : ON
285
276
uses : ashutoshvarma/action-cmake-build@master
286
277
with :
287
278
build-dir : ${{ github.workspace }}/build
288
279
source-dir : ${{ github.workspace }}
289
280
cc : clang
290
281
cxx : clang++
291
- build-type : ${{ matrix.buildType }}
282
+ build-type : Release
292
283
run-test : true
293
284
ctest-options : ${{ env.CTEST_OPTIONS }}
294
285
295
- macos-clang-darwinssl :
286
+ macos-clang-openssl :
296
287
runs-on : macos-latest
297
288
steps :
289
+ - name : Install OpenSSL
290
+ run : |
291
+ brew install openssl
292
+ echo 'export PATH="${{ env.MACOS_OPENSSL_ROOT_DIR }}/bin:$PATH"' >> /Users/runner/.bash_profile
293
+ source ~/.bash_profile
294
+ brew info openssl
298
295
- name : Checkout
299
296
uses : actions/checkout@v3
300
297
- name : " Build & Test"
301
298
env :
302
299
CPR_BUILD_TESTS : ON
303
- CPR_BUILD_TESTS_SSL : OFF
304
- CPR_FORCE_DARWINSSL_BACKEND : ON
300
+ CPR_BUILD_TESTS_SSL : ON
301
+ CPR_FORCE_OPENSSL_BACKEND : ON
302
+ OPENSSL_ROOT_DIR : " ${{ env.MACOS_OPENSSL_ROOT_DIR }}"
303
+ OPENSSL_LIBRARIES : " ${{ env.MACOS_OPENSSL_ROOT_DIR }}/lib"
304
+ LDFLAGS : " -L${{ env.MACOS_OPENSSL_ROOT_DIR }}/lib"
305
+ CPPFLAGS : " -I${{ env.MACOS_OPENSSL_ROOT_DIR }}/include"
306
+ PKG_CONFIG_PATH : " ${{ env.MACOS_OPENSSL_ROOT_DIR }}/lib/pkgconfig"
305
307
uses : ashutoshvarma/action-cmake-build@master
306
308
with :
307
309
build-dir : ${{ github.workspace }}/build
@@ -311,7 +313,7 @@ jobs:
311
313
build-type : Release
312
314
run-test : true
313
315
ctest-options : ${{ env.CTEST_OPTIONS }}
314
-
316
+
315
317
macos-clang-openssl-boost :
316
318
runs-on : macos-latest
317
319
steps :
@@ -320,21 +322,19 @@ jobs:
320
322
- name : Install OpenSSL
321
323
run : |
322
324
brew install openssl
323
- echo 'export PATH="/usr/local/opt/openssl/bin:$PATH"' >> /Users/runner/.bash_profile
324
- source ~/.bash_profile
325
325
- name : Checkout
326
326
uses : actions/checkout@v3
327
327
- name : " Build & Test"
328
328
env :
329
329
CPR_BUILD_TESTS : ON
330
330
CPR_BUILD_TESTS_SSL : ON
331
- CPR_USE_BOOST_FILESYSTEM : ON
332
331
CPR_FORCE_OPENSSL_BACKEND : ON
333
- OPENSSL_ROOT_DIR : " /usr/local/opt/openssl"
334
- OPENSSL_LIBRARIES : " /usr/local/opt/openssl/lib"
335
- LDFLAGS : " -L/usr/local/opt/openssl/lib"
336
- CPPFLAGS : " -I/usr/local/opt/openssl/include"
337
- PKG_CONFIG_PATH : " /usr/local/opt/openssl/lib/pkgconfig"
332
+ CPR_USE_BOOST_FILESYSTEM : ON
333
+ OPENSSL_ROOT_DIR : " ${{ env.MACOS_OPENSSL_ROOT_DIR }}"
334
+ OPENSSL_LIBRARIES : " ${{ env.MACOS_OPENSSL_ROOT_DIR }}/lib"
335
+ LDFLAGS : " -L${{ env.MACOS_OPENSSL_ROOT_DIR }}/lib"
336
+ CPPFLAGS : " -I${{ env.MACOS_OPENSSL_ROOT_DIR }}/include"
337
+ PKG_CONFIG_PATH : " ${{ env.MACOS_OPENSSL_ROOT_DIR }}/lib/pkgconfig"
338
338
uses : ashutoshvarma/action-cmake-build@master
339
339
with :
340
340
build-dir : ${{ github.workspace }}/build
@@ -343,4 +343,4 @@ jobs:
343
343
cxx : clang++
344
344
build-type : Release
345
345
run-test : true
346
- ctest-options : ${{ env.CTEST_OPTIONS }}
346
+ ctest-options : ${{ env.CTEST_OPTIONS }}
0 commit comments