mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2025-07-08 00:34:57 +03:00
travis-ci: add libressl build, make builds parallel, remove not needed brew
This commit is contained in:
23
.ci/build-libressl.sh
Executable file
23
.ci/build-libressl.sh
Executable file
@ -0,0 +1,23 @@
|
||||
#!/bin/bash
|
||||
set -eux
|
||||
|
||||
download_libressl () {
|
||||
if [[ ! -f "download-cache/librenssl-${LIBRESSL_VERSION}.tar.gz" ]]; then
|
||||
wget -P download-cache/ \
|
||||
"https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-${LIBRESSL_VERSION}.tar.gz"
|
||||
fi
|
||||
}
|
||||
|
||||
build_libressl () {
|
||||
if [[ "$(cat ${OPENSSL_INSTALL_DIR}/.openssl-version)" != "${LIBRESSL_VERSION}" ]]; then
|
||||
tar zxf "download-cache/libressl-${LIBRESSL_VERSION}.tar.gz"
|
||||
cd "libressl-${LIBRESSL_VERSION}/"
|
||||
./configure --prefix="${OPENSSL_INSTALL_DIR}"
|
||||
make -j $(nproc || sysctl -n hw.ncpu || echo 4) all
|
||||
make install
|
||||
echo "${LIBRESSL_VERSION}" > "${OPENSSL_INSTALL_DIR}/.openssl-version"
|
||||
fi
|
||||
}
|
||||
|
||||
download_libressl
|
||||
build_libressl
|
Reference in New Issue
Block a user