Skip to content

Commit

Permalink
GHA: Linux: always use OpenSSL 1.1+
Browse files Browse the repository at this point in the history
  • Loading branch information
Al2Klimov committed Dec 5, 2023
1 parent 0570dbf commit edca934
Showing 1 changed file with 22 additions and 4 deletions.
26 changes: 22 additions & 4 deletions .github/workflows/linux.bash
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,18 @@ CMAKE_OPTS=''
case "$DISTRO" in
amazonlinux:2)
amazon-linux-extras install -y epel
yum install -y bison ccache cmake3 gcc-c++ flex ninja-build \
{libedit,mariadb,ncurses,openssl,postgresql,systemd}-devel

# The headers must be installed separately, not from openssl11-devel.
# That package conflicts with openssl-devel, a dependency of mariadb-devel.
# See: yum install {mariadb,openssl11}-devel
yum update -y
yum install -y openssl11-devel
mkdir /openssl11
cp -r /usr/include/openssl /openssl11
yum history undo last -y

yum install -y bison ccache cmake3 gcc-c++ flex ninja-build openssl11-libs \
{libedit,mariadb,ncurses,postgresql,systemd}-devel

yum install -y bzip2 tar wget
wget https://boostorg.jfrog.io/artifactory/main/release/1.69.0/source/boost_1_69_0.tar.bz2
Expand All @@ -24,8 +34,12 @@ case "$DISTRO" in

ln -vs /usr/bin/cmake3 /usr/local/bin/cmake
ln -vs /usr/bin/ninja-build /usr/local/bin/ninja
CMAKE_OPTS='-DBOOST_INCLUDEDIR=/boost_1_69_0 -DBOOST_LIBRARYDIR=/boost_1_69_0/stage/lib'
export LD_LIBRARY_PATH=/boost_1_69_0/stage/lib

CMAKE_OPTS='-DBOOST_INCLUDEDIR=/boost_1_69_0 -DBOOST_LIBRARYDIR=/boost_1_69_0/stage/lib'
CMAKE_OPTS="$CMAKE_OPTS -DOPENSSL_INCLUDE_DIR=/openssl11"
CMAKE_OPTS="$CMAKE_OPTS -DOPENSSL_CRYPTO_LIBRARY=/usr/lib64/libcrypto.so.1.1"
CMAKE_OPTS="$CMAKE_OPTS -DOPENSSL_SSL_LIBRARY=/usr/lib64/libssl.so.1.1"
;;

amazonlinux:20*)
Expand All @@ -36,11 +50,15 @@ case "$DISTRO" in
centos:*)
yum install -y centos-release-scl epel-release
yum install -y bison ccache cmake3 devtoolset-11-gcc-c++ flex ninja-build \
{boost169,libedit,mariadb,ncurses,openssl,postgresql,systemd}-devel
{boost169,libedit,mariadb,ncurses,openssl11,postgresql,systemd}-devel

ln -vs /usr/bin/cmake3 /usr/local/bin/cmake
ln -vs /usr/bin/ccache /usr/lib64/ccache/g++

CMAKE_OPTS='-DBOOST_INCLUDEDIR=/usr/include/boost169 -DBOOST_LIBRARYDIR=/usr/lib64/boost169'
CMAKE_OPTS="$CMAKE_OPTS -DOPENSSL_INCLUDE_DIR=/usr/include/openssl11"
CMAKE_OPTS="$CMAKE_OPTS -DOPENSSL_CRYPTO_LIBRARY=/usr/lib64/libcrypto.so.1.1"
CMAKE_OPTS="$CMAKE_OPTS -DOPENSSL_SSL_LIBRARY=/usr/lib64/libssl.so.1.1"
;;

debian:*|ubuntu:*)
Expand Down

0 comments on commit edca934

Please sign in to comment.