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 20bf7a3 commit e4ef53d
Showing 1 changed file with 7 additions and 45 deletions.
52 changes: 7 additions & 45 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,49 +17,11 @@ jobs:
uses: addnab/docker-run-action@v3
with:
image: quay.io/pypa/manylinux2014_x86_64
options: --user root
options: |
--user root
--volume ${{ github.workspace }}:/tmp/o2
--env RUST_VERSION=${{ fromJSON(vars.RUST_VERSION) }}
--env PYTHON_VERSION=${{ matrix.python-version }}
run: |
echo "========================================"
echo "===== Install Rust ====="
echo "========================================"
curl https://sh.rustup.rs -sSf | sh -s -- -y
source $HOME/.cargo/env
echo "========================================"
echo "===== Set Rust Version ====="
echo "========================================"
rustup install ${{ fromJSON(vars.RUST_VERSION) }}
rustup default ${{ fromJSON(vars.RUST_VERSION) }}
echo "========================================"
echo "===== Check Rust Version ====="
echo "========================================"
rustc --version
cargo --version
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
source /tmp/o2/.github/workflows/setup_manylinux.sh

0 comments on commit e4ef53d

Please sign in to comment.