]> www.wagner.pp.ru Git - openssl-gost/engine.git/blob - .github/before_script.sh
tcl_tests: ca.try: Ignore openssl crl exit status for 'corrupted CRL' test
[openssl-gost/engine.git] / .github / before_script.sh
1 #!/bin/bash -efux
2
3 # Download cpanm and make it executable as a standalone script
4 curl -L https://cpanmin.us -o cpanm
5 chmod 0755 cpanm
6
7 sudo ./cpanm --notest Test2::V0 > build.log 2>&1 \
8     || (cat build.log && exit 1)
9
10 if [ "${APT_INSTALL-}" ]; then
11     sudo apt-get install -y $APT_INSTALL
12 fi
13
14 git clone --depth 1 -b $OPENSSL_BRANCH https://github.com/openssl/openssl.git
15 cd openssl
16 git describe --always --long
17
18 PREFIX=$HOME/opt
19
20 ${SETARCH-} ./config shared -d --prefix=$PREFIX --libdir=lib --openssldir=$PREFIX ${USE_RPATH:+-Wl,-rpath=$PREFIX/lib}
21 ${SETARCH-} make -s -j$(nproc) build_libs
22 ${SETARCH-} make -s -j$(nproc) build_programs
23 make -s install_sw