]> tinc-vpn.org Git - tinc/blobdiff - .github/workflows/test/run.sh
CI: Install and use OpenSSL 1.1 on CentOS 7.
[tinc] / .github / workflows / test / run.sh
index 74bb8bd62a9f28c525cb8d35b4a62cb211472bd3..778d5d3ffa04d146477caef8119113c1667ad689 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)"