Skip to content

Commit

Permalink
Update publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
rlaj authored Dec 1, 2024
1 parent 6c90b70 commit a20740b
Showing 1 changed file with 31 additions and 4 deletions.
35 changes: 31 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,47 @@ jobs:
image: quay.io/pypa/manylinux2014_x86_64
options: --user root
run: |
echo "=====Install Rust====="
echo "========================================"
echo "===== Install Rust ====="
echo "========================================"
curl https://sh.rustup.rs -sSf | sh -s -- -y
source $HOME/.cargo/env
echo "=====Set Rust Version====="
echo "========================================"
echo "===== Set Rust Version ====="
echo "========================================"
rustup install ${{ fromJSON(vars.RUST_VERSION) }}
rustup default ${{ fromJSON(vars.RUST_VERSION) }}
echo "=====Check Rust Version====="
echo "========================================"
echo "===== Check Rust Version ====="
echo "========================================"
rustc --version
cargo --version
echo "=====Install Newer OpenSSL====="
echo "========================================"
echo "===== Install Newer OpenSSL ====="
echo "========================================"
curl -O -L https://www.openssl.org/source/openssl-1.1.1w.tar.gz
ls -al openssl-1.1.1w.tar.gz
tar zxf openssl-1.1.1w.tar.gz
cd openssl-1.1.1w
./config
make
make install
echo "========================================"
echo "===== Install libffi ====="
echo "========================================"
yum install libffi-devel -y
ldconfig
echo "========================================"
echo "===== Install libffi ====="
echo "========================================"
yum install perl-IPC-Cmd -y
echo "========================================"
echo "===== Install Python ====="
echo "========================================"
ls $ROOT_DIR/openssl-1.1.1w
curl -O https://www.python.org/ftp/python/${{ matrix.python-version }}/Python-${{ matrix.python-version }}.tgz
tar zxf Python-${{ matrix.python-version }}.tgz
cd Python-${{ matrix.python-version }}
./configure --with-openssl=$ROOT_DIR/openssl-1.1.1w --prefix=/root/python --enable-optimizations --enable-shared
make altinstall

0 comments on commit a20740b

Please sign in to comment.