]> www.wagner.pp.ru Git - openssl-gost/engine.git/blob - .github/before_script.sh
Explicitly set libdir to lib
[openssl-gost/engine.git] / .github / before_script.sh
1 #!/bin/bash -efux
2
3 curl -L https://cpanmin.us | sudo perl - --sudo App::cpanminus
4 sudo cpanm --notest Test2::V0 > build.log 2>&1 || (cat build.log && exit 1)
5
6 if [ "${APT_INSTALL-}" ]; then
7     sudo apt-get install -y $APT_INSTALL
8 fi
9
10 git clone --depth 1 -b $OPENSSL_BRANCH https://github.com/openssl/openssl.git
11 cd openssl
12 git describe --always --long
13
14 PREFIX=$HOME/opt
15
16 ${SETARCH-} ./config shared -d --prefix=$PREFIX --libdir=lib --openssldir=$PREFIX -Wl,-rpath=$PREFIX/lib
17 ${SETARCH-} make -s -j$(nproc) build_libs
18 ${SETARCH-} make -s -j$(nproc) build_programs
19 make -s install_sw