summaryrefslogtreecommitdiffstats
path: root/.github/setup_ci.sh
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@dtucker.net>2021-04-26 14:02:03 +1000
committerDarren Tucker <dtucker@dtucker.net>2021-04-26 14:50:44 +1000
commit095b0307a77be8803768857cc6c0963fa52ed85b (patch)
treeede060a48b76d826314f2a3955d497d28cf14f5c /.github/setup_ci.sh
parentb16082aa110fa7128ece2a9037ff420c4a285317 (diff)
Support testing against arbitary libcrytpo vers.
Add tests against various LibreSSL and OpenSSL versions.
Diffstat (limited to '.github/setup_ci.sh')
-rwxr-xr-x.github/setup_ci.sh26
1 files changed, 18 insertions, 8 deletions
diff --git a/.github/setup_ci.sh b/.github/setup_ci.sh
index 46832128..56950252 100755
--- a/.github/setup_ci.sh
+++ b/.github/setup_ci.sh
@@ -47,11 +47,19 @@ for TARGET in $TARGETS; do
hardenedmalloc)
INSTALL_HARDENED_MALLOC=yes
;;
- openssl-head)
- INSTALL_OPENSSL_HEAD=yes
+ openssl-*)
+ INSTALL_OPENSSL=$(echo ${TARGET} | cut -f2 -d-)
+ case ${INSTALL_OPENSSL} in
+ 1.*) INSTALL_OPENSSL="OpenSSL_$(echo ${INSTALL_OPENSSL} | tr . _)" ;;
+ 3.*) INSTALL_OPENSSL="openssl-${INSTALL_OPENSSL}" ;;
+ esac
;;
- libressl-head)
- INSTALL_LIBRESSL_HEAD=yes
+ libressl-*)
+ INSTALL_LIBRESSL=$(echo ${TARGET} | cut -f2 -d-)
+ case ${INSTALL_LIBRESSL} in
+ master) ;;
+ *) INSTALL_LIBRESSL="v$(echo ${TARGET} | cut -f2 -d-)" ;;
+ esac
;;
valgrind*)
PACKAGES="$PACKAGES valgrind"
@@ -80,7 +88,7 @@ if [ "${INSTALL_HARDENED_MALLOC}" = "yes" ]; then
make -j2 && sudo cp libhardened_malloc.so /usr/lib/)
fi
-if [ "${INSTALL_OPENSSL_HEAD}" = "yes" ];then
+if [ ! -z "${INSTALL_OPENSSL}" ]; then
(cd ${HOME} &&
git clone https://github.com/openssl/openssl.git &&
cd ${HOME}/openssl &&
@@ -88,10 +96,12 @@ if [ "${INSTALL_OPENSSL_HEAD}" = "yes" ];then
make -j2 && sudo make install_sw)
fi
-if [ "${INSTALL_LIBRESSL_HEAD}" = "yes" ];then
+if [ ! -z "${INSTALL_LIBRESSL}" ]; then
(mkdir -p ${HOME}/libressl && cd ${HOME}/libressl &&
git clone https://github.com/libressl-portable/portable.git &&
- cd ${HOME}/libressl/portable && sh update.sh && sh autogen.sh &&
+ cd ${HOME}/libressl/portable &&
+ git checkout ${INSTALL_LIBRESSL} &&
+ sh update.sh && sh autogen.sh &&
./configure --prefix=/opt/libressl/head &&
- make -j2 && sudo make install_sw)
+ make -j2 && sudo make install)
fi