mirror of
https://github.com/PowerShell/openssh-portable.git
synced 2025-09-25 10:58:56 +02:00
Add test against openssl head and libressl head.
This commit is contained in:
parent
237dbb34e2
commit
66dd9ddb5d
24
.github/setup_ci.sh
vendored
24
.github/setup_ci.sh
vendored
@ -20,7 +20,7 @@ lsb_release -a
|
|||||||
|
|
||||||
for TARGET in $TARGETS; do
|
for TARGET in $TARGETS; do
|
||||||
case $TARGET in
|
case $TARGET in
|
||||||
""|--without-openssl|--without-zlib|--with-Werror)
|
""|--without-openssl|--without-zlib|--with-Werror|--with-rpath*)
|
||||||
# nothing to do
|
# nothing to do
|
||||||
;;
|
;;
|
||||||
"--with-kerberos5")
|
"--with-kerberos5")
|
||||||
@ -43,6 +43,12 @@ for TARGET in $TARGETS; do
|
|||||||
"--with-ldflags=-lhardened_malloc")
|
"--with-ldflags=-lhardened_malloc")
|
||||||
INSTALL_HARDENED_MALLOC=yes
|
INSTALL_HARDENED_MALLOC=yes
|
||||||
;;
|
;;
|
||||||
|
"--with-ssl-dir=/opt/openssl/head")
|
||||||
|
INSTALL_OPENSSL_HEAD=yes
|
||||||
|
;;
|
||||||
|
"--with-ssl-dir=/opt/libressl/head")
|
||||||
|
INSTALL_LIBRESSL_HEAD=yes
|
||||||
|
;;
|
||||||
*) echo "Invalid option '${TARGET}'"
|
*) echo "Invalid option '${TARGET}'"
|
||||||
exit 1
|
exit 1
|
||||||
;;
|
;;
|
||||||
@ -66,3 +72,19 @@ if [ "${INSTALL_HARDENED_MALLOC}" = "yes" ]; then
|
|||||||
cd ${HOME}/hardened_malloc &&
|
cd ${HOME}/hardened_malloc &&
|
||||||
make && sudo cp libhardened_malloc.so /usr/lib/)
|
make && sudo cp libhardened_malloc.so /usr/lib/)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ "${INSTALL_OPENSSL_HEAD}" = "yes" ];then
|
||||||
|
(cd ${HOME} &&
|
||||||
|
git clone https://github.com/openssl/openssl.git &&
|
||||||
|
cd ${HOME}/openssl &&
|
||||||
|
./config no-threads no-engine no-fips no-shared --prefix=/opt/openssl/head &&
|
||||||
|
make && sudo make install_sw)
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "${INSTALL_LIBRESSL_HEAD}" = "yes" ];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 &&
|
||||||
|
./configure --prefix=/opt/libressl/head &&
|
||||||
|
make && sudo make install_sw)
|
||||||
|
fi
|
||||||
|
5
.github/workflows/c-cpp.yml
vendored
5
.github/workflows/c-cpp.yml
vendored
@ -8,16 +8,15 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
ubuntu-20_04:
|
ubuntu-20_04:
|
||||||
|
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
configs:
|
configs:
|
||||||
- ""
|
- ""
|
||||||
- "--with-kerberos5 --with-libedit --with-pam --with-security-key-builtin --with-selinux --with-Werror"
|
- "--with-kerberos5 --with-libedit --with-pam --with-security-key-builtin --with-selinux --with-Werror"
|
||||||
- "--with-ldflags=-lhardened_malloc"
|
- "--with-ldflags=-lhardened_malloc"
|
||||||
|
- "--with-ssl-dir=/opt/openssl/head --with-rpath=-Wl,-rpath,"
|
||||||
|
- "--with-ssl-dir=/opt/libressl/head --with-rpath=-Wl,-rpath,"
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: setup CI system
|
- name: setup CI system
|
||||||
|
Loading…
x
Reference in New Issue
Block a user