]> www.wagner.pp.ru Git - openssl-gost/engine.git/blob - .github/before_script.sh
50c4fc80282e685e9c0e5fa308fb88a73e365a7c
[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 patch -p0 < ../patches/openssl_111m.diff
13 patch -p0 < ../patches/openssl_111m_obj.diff
14 patch -p0 < ../patches/openssl_111m_tls13.diff
15 git describe --always --long
16
17 PREFIX=$HOME/opt
18
19 ${SETARCH-} ./config shared -d --prefix=$PREFIX --openssldir=$PREFIX -Wl,-rpath=$PREFIX/lib
20 ${SETARCH-} make -s -j$(nproc) build_libs
21 ${SETARCH-} make -s -j$(nproc) build_programs
22 make -s install_sw