mirror of
https://github.com/GAM-team/GAM.git
synced 2026-07-03 20:31:35 +00:00
Update linux-before-install.sh
This commit is contained in:
10
.github/actions/linux-before-install.sh
vendored
10
.github/actions/linux-before-install.sh
vendored
@@ -48,7 +48,7 @@ if [ $SSLRESULT -ne 0 ] || [[ "$SSLVER" != "OpenSSL $BUILD_OPENSSL_VERSION "* ]]
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Compile latest OpenSSL
|
# Compile latest OpenSSL
|
||||||
curl -O "https://www.openssl.org/source/openssl-${BUILD_OPENSSL_VERSION}.tar.gz"
|
curl -O --silent "https://www.openssl.org/source/openssl-${BUILD_OPENSSL_VERSION}.tar.gz"
|
||||||
echo "Extracting OpenSSL..."
|
echo "Extracting OpenSSL..."
|
||||||
tar xf openssl-$BUILD_OPENSSL_VERSION.tar.gz
|
tar xf openssl-$BUILD_OPENSSL_VERSION.tar.gz
|
||||||
cd openssl-$BUILD_OPENSSL_VERSION
|
cd openssl-$BUILD_OPENSSL_VERSION
|
||||||
@@ -62,12 +62,12 @@ if [ $SSLRESULT -ne 0 ] || [[ "$SSLVER" != "OpenSSL $BUILD_OPENSSL_VERSION "* ]]
|
|||||||
|
|
||||||
# Compile latest Python
|
# Compile latest Python
|
||||||
echo "Downloading Python $BUILD_PYTHON_VERSION..."
|
echo "Downloading Python $BUILD_PYTHON_VERSION..."
|
||||||
curl -O "https://www.python.org/ftp/python/${BUILD_PYTHON_VERSION}/Python-${BUILD_PYTHON_VERSION}.tar.xz"
|
curl -O --silent "https://www.python.org/ftp/python/${BUILD_PYTHON_VERSION}/Python-${BUILD_PYTHON_VERSION}.tar.xz"
|
||||||
echo "Extracting Python..."
|
echo "Extracting Python..."
|
||||||
tar xf "Python-${BUILD_PYTHON_VERSION}.tar.xz"
|
tar xf "Python-${BUILD_PYTHON_VERSION}.tar.xz"
|
||||||
cd Python-$BUILD_PYTHON_VERSION
|
cd Python-$BUILD_PYTHON_VERSION
|
||||||
echo "Compiling Python $BUILD_PYTHON_VERSION..."
|
echo "Compiling Python $BUILD_PYTHON_VERSION..."
|
||||||
flags="--with-openssl=${HOME}/ssl --with-openssl=${HOME}/ssl --with-openssl-rpath=${HOME}/ssl/lib --enable-shared --prefix=${HOME}/python --with-ensurepip=upgrade --enable-optimizations --with-lto"
|
export flags="--with-openssl=${HOME}/ssl --enable-shared --prefix=${HOME}/python --with-ensurepip=upgrade --enable-optimizations --with-lto"
|
||||||
./configure $flags > /dev/null
|
./configure $flags > /dev/null
|
||||||
make -j$cpucount -s
|
make -j$cpucount -s
|
||||||
echo "Installing Python..."
|
echo "Installing Python..."
|
||||||
@@ -75,8 +75,8 @@ if [ $SSLRESULT -ne 0 ] || [[ "$SSLVER" != "OpenSSL $BUILD_OPENSSL_VERSION "* ]]
|
|||||||
cd ~
|
cd ~
|
||||||
fi
|
fi
|
||||||
|
|
||||||
python=~/python/bin/python3
|
python="${HOME}/python/bin/python3"
|
||||||
pip=~/python/bin/pip3
|
pip="${HOME}/python/bin/pip3"
|
||||||
|
|
||||||
if ([ "${ImageOS}" == "ubuntu20" ]) && [ "${HOSTTYPE}" == "x86_64" ]; then
|
if ([ "${ImageOS}" == "ubuntu20" ]) && [ "${HOSTTYPE}" == "x86_64" ]; then
|
||||||
"${python}" -m pip install --upgrade patchelf-wrapper
|
"${python}" -m pip install --upgrade patchelf-wrapper
|
||||||
|
|||||||
Reference in New Issue
Block a user