]> granicus.if.org Git - libevent/commitdiff
ci: fix macOS mbedtls version/search
authorPierce Lopez <pierce.lopez@gmail.com>
Fri, 17 Sep 2021 05:37:19 +0000 (01:37 -0400)
committerPierce Lopez <pierce.lopez@gmail.com>
Fri, 17 Sep 2021 14:33:37 +0000 (10:33 -0400)
mbedtls just updated to version 3.0, install mbedtls@2 variant,
which needs more help being located since it's no longer the
default and no longer linked into the typical /usr/local dirs

also gitignore mbedtls sample program binaries

.github/workflows/macos.yml
.gitignore

index 5ce4b432fb39b349db205f86a44de46be55c0800..e13764459470c007479e4d5a52a642cff51cbe36 100644 (file)
@@ -48,7 +48,7 @@ jobs:
           key: macos-10.15-cmake-${{ matrix.EVENT_MATRIX }}-v3
 
       - name: Install Depends
-        run: brew install mbedtls
+        run: brew install mbedtls@2
 
       - name: Build And Test
         shell: bash
@@ -86,6 +86,7 @@ jobs:
           else
             EVENT_CMAKE_OPTIONS=""
           fi
+          EVENT_CMAKE_OPTIONS="$EVENT_CMAKE_OPTIONS -DMBEDTLS_ROOT_DIR=/usr/local/opt/mbedtls@2"
 
           #run build and test
           JOBS=1
@@ -137,7 +138,7 @@ jobs:
           key: ${{ matrix.os }}-autotools-${{ matrix.EVENT_MATRIX }}-v3
 
       - name: Install Depends
-        run: brew install autoconf automake libtool pkg-config mbedtls
+        run: brew install autoconf automake libtool pkg-config mbedtls@2
 
       - name: Build And Test
         shell: bash
@@ -150,6 +151,8 @@ jobs:
           else
             export PKG_CONFIG_PATH="/usr/local/opt/openssl/lib/pkgconfig:$PKG_CONFIG_PATH"
           fi
+          export CPPFLAGS="-I/usr/local/opt/mbedtls@2/include"
+          export  LDFLAGS="-L/usr/local/opt/mbedtls@2/lib"
 
           if [ "${{ matrix.EVENT_MATRIX }}" == "DISABLE_OPENSSL" ]; then
             EVENT_CONFIGURE_OPTIONS="--disable-openssl"
index e348d168ab0dd117785229172231f0b7f8d8f002..28bab0a472737e6dfa9d37f860f1fa28835bcd6f 100644 (file)
@@ -97,6 +97,8 @@ http-server
 http-connect
 le-proxy
 https-client
+https-client-mbedtls
+ssl-client-mbedtls
 signal-test
 time-test
 event-test