]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
Include libressl and macOS 12 to macOS github actions
authorArne Schwabe <arne@rfc2549.org>
Mon, 22 Aug 2022 18:41:47 +0000 (20:41 +0200)
committerGert Doering <gert@greenie.muc.de>
Mon, 22 Aug 2022 19:17:20 +0000 (21:17 +0200)
Signed-off-by: Arne Schwabe <arne@rfc2549.org>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <20220822184147.281142-2-arne@rfc2549.org>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg25065.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
.github/workflows/build.yaml

index 65517e304bedad855fcd02ca21897a9807903b24..b0f67a7859f3fe05bfa0bab8c82e635248e9a369 100644 (file)
@@ -261,12 +261,12 @@ jobs:
         run: make check
 
   macos:
-    runs-on: macos-latest
     strategy:
       fail-fast: false
       matrix:
-        ossl: [ 1.1, 3 ]
+        ssllib: [ openssl11, openssl3, libressl]
         build: [ normal, asan ]
+        os: [macos-11, macos-12]
         include:
           - build: asan
             cflags: "-fsanitize=address -fno-optimize-sibling-calls -fsanitize-address-use-after-scope -fno-omit-frame-pointer -g -O1"
@@ -277,22 +277,32 @@ jobs:
             cflags: "-O2 -g"
             ldflags: ""
             configureflags: ""
+          - ssllib: openssl11
+            libdir: openssl@1.1
+            configuressllib: ""
+          - ssllib: openssl3
+            libdir: openssl@3
+            configuressllib: ""
+          - ssllib: libressl
+            libdir: libressl
+            configuressllib: "--with-openssl-engine=no"
 
-    name: "macOS - OpenSSL ${{matrix.ossl}} - ${{matrix.build}}"
+    runs-on: ${{matrix.os}}
+    name: "${{matrix.os}} - ${{matrix.libdir}} - ${{matrix.build}}"
     env:
       CFLAGS: ${{ matrix.cflags }}
       LDFLAGS: ${{ matrix.ldflags }}
-      OPENSSL_CFLAGS: -I/usr/local/opt/openssl@${{matrix.ossl}}/include
-      OPENSSL_LIBS: "-L/usr/local/opt/openssl@${{matrix.ossl}}/lib -lcrypto -lssl"
+      OPENSSL_CFLAGS: "-I/usr/local/opt/${{matrix.libdir}}/include"
+      OPENSSL_LIBS: "-L/usr/local/opt/${{matrix.libdir}}/lib -lcrypto -lssl"
     steps:
       - name: Install dependencies
-        run: brew install openssl@1.1 openssl@3 lzo lz4 man2html cmocka libtool automake autoconf
+        run: brew install openssl@1.1 openssl@3 lzo lz4 man2html cmocka libtool automake autoconf libressl
       - name: Checkout OpenVPN
         uses: actions/checkout@v3
       - name: autoconf
         run: autoreconf -fvi
       - name: configure
-        run: ./configure ${{matrix.configureflags}}
+        run: ./configure ${{matrix.configureflags}} ${{matrix.configuressllib}}
       - name: make all
         run: make -j4
       - name: make check