]> granicus.if.org Git - libevent/commitdiff
ci: fix cmake build w/o OPENSSL_ROOT_DIR
authorAzat Khuzhin <azat@libevent.org>
Sat, 9 Jul 2022 15:43:29 +0000 (18:43 +0300)
committerAzat Khuzhin <azat@libevent.org>
Sat, 9 Jul 2022 17:15:17 +0000 (20:15 +0300)
cmake build rules does not have detection of OPENSSL_ROOT_DIR via brew,
so we cannot run such builds on CI.

Always set OPENSSL_ROOT_DIR for cmake.

.github/workflows/macos.yml

index 484616c518b5a65a9dc7423d350544ee54205a68..de3290d0473d8ed894e5502043d214c78a7352d5 100644 (file)
@@ -54,6 +54,9 @@ jobs:
         run: |
           if [ "${{ matrix.EVENT_MATRIX }}" == "OPENSSL_1_1" ]; then
             export OPENSSL_ROOT_DIR=/usr/local/opt/openssl@1.1
+          else
+            # NOTE: cmake does not support autodetection of OPENSSL_ROOT_DIR via brew
+            export OPENSSL_ROOT_DIR=/usr/local/opt/openssl
           fi
 
           if [ "${{ matrix.EVENT_MATRIX }}" == "DISABLE_OPENSSL" ]; then