X-Git-Url: http://www.wagner.pp.ru/gitweb/?a=blobdiff_plain;f=.github%2Fbefore_script.sh;fp=.github%2Fbefore_script.sh;h=7a86543452e7be130ebd7becf40e0e5df3ca0019;hb=42a6213fe3bab6003121069ef28a1419e2342b3c;hp=0000000000000000000000000000000000000000;hpb=711b83cba2fb9d5615e83ce17ccd1fbd66d4b9db;p=openssl-gost%2Fengine.git diff --git a/.github/before_script.sh b/.github/before_script.sh new file mode 100755 index 0000000..7a86543 --- /dev/null +++ b/.github/before_script.sh @@ -0,0 +1,19 @@ +#!/bin/bash -efux + +curl -L https://cpanmin.us | sudo perl - --sudo App::cpanminus +sudo cpanm --notest Test2::V0 > build.log 2>&1 || (cat build.log && exit 1) + +if [ "${APT_INSTALL-}" ]; then + sudo apt-get install -y $APT_INSTALL +fi + +git clone --depth 1 -b $OPENSSL_BRANCH https://github.com/openssl/openssl.git +cd openssl +git describe --always --long + +PREFIX=$HOME/opt + +${SETARCH-} ./config shared -d --prefix=$PREFIX --openssldir=$PREFIX -Wl,-rpath=$PREFIX/lib +${SETARCH-} make -s -j$(nproc) build_libs +${SETARCH-} make -s -j$(nproc) build_programs +make -s install_sw