CI: Install and use OpenSSL 1.1 on CentOS 7.
authorGuus Sliepen <guus@tinc-vpn.org>
Tue, 20 Jul 2021 21:55:35 +0000 (23:55 +0200)
committerGuus Sliepen <guus@tinc-vpn.org>
Tue, 20 Jul 2021 21:55:35 +0000 (23:55 +0200)
.github/workflows/test.yml
.github/workflows/test/run.sh

index a9253ab..6c6323c 100644 (file)
@@ -131,7 +131,8 @@ jobs:
           fi
           yum install -y epel-release
           yum install -y git binutils make autoconf automake gcc diffutils \
-            texinfo netcat procps socat {lzo,zlib,lz4,openssl11,ncurses,readline}-devel
+            texinfo netcat procps socat {lzo,zlib,lz4,ncurses,readline}-devel
+          yum install openssl11-devel || yum install openssl-devel
         if: startsWith(matrix.os, 'centos') || startsWith(matrix.os, 'alma')
 
       - name: Install deps (SUSE)
index 74bb8bd..778d5d3 100644 (file)
@@ -28,6 +28,15 @@ run_tests() {
 
   header "Running test flavor $flavor"
 
+  # CentOS 7 has OpenSSL 1.1 installed in a non-default location.
+  if test -d /usr/include/openssl11; then
+    set -- "$@" --with-openssl-include=/usr/include/openssl11
+  fi
+
+  if test -d /usr/lib64/openssl11; then
+    set -- "$@" --with-openssl-lib=/usr/lib64/openssl11
+  fi
+
   autoreconf -fsi
   ./configure "$@"
   make -j"$(nproc)"