Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
sbravehk committed Jun 19, 2023
1 parent f3f6371 commit f9b32aa
Showing 1 changed file with 7 additions and 17 deletions.
24 changes: 7 additions & 17 deletions .github/workflows/build_manylinux_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,14 @@ jobs:
runs-on: ubuntu-20.04
strategy:
matrix:
#arch: [x86_64, i686, aarch64, ppc64le, s390x]
arch: [aarch64, ppc64le, s390x]
arch: [x86_64, i686, aarch64, ppc64le, s390x] #aarch64 is easyly timeout in github action, maybe need to build in local
timeout-minutes: 1200
steps:
- name: Check out
uses: actions/checkout@v3
with:
path: build_docker

- name: Check out manylinux repo
uses: actions/checkout@v3
with:
Expand All @@ -30,21 +34,7 @@ jobs:
- name: rebuild manylinux images with shared python libraries for arch ${{ matrix.arch }}
run: |
cd manylinux
sed -i 's/--disable-shared/--enable-shared/g' docker/build_scripts/build-cpython.sh
sed -i '/RUN manylinux-entrypoint \/build_scripts\/finalize-python.sh/d' docker/Dockerfile
sed -i 's/^[ \t]*${PREFIX}\/bin\/python/LD_LIBRARY_PATH=${PREFIX}\/lib ${PREFIX}\/bin\/python/g' docker/build_scripts/finalize.sh
sed -i 's/^[ \t]*${PREFIX}\/bin\/pip/LD_LIBRARY_PATH=${PREFIX}\/lib ${PREFIX}\/bin\/pip/g' docker/build_scripts/finalize.sh
sed -i 's/$(${PREFIX}\/bin\/python/$(LD_LIBRARY_PATH=${PREFIX}\/lib ${PREFIX}\/bin\/python/g' docker/build_scripts/finalize.sh
sed -i 's/^\/opt\/python\/cp310-cp310\/bin\/python/LD_LIBRARY_PATH=\/opt\/python\/cp310-cp310\/lib \/opt\/python\/cp310-cp310\/bin\/python/g' docker/build_scripts/finalize.sh
sed -i 's/^pip install/LD_LIBRARY_PATH=\/opt\/python\/cp310-cp310\/lib pip install/g' docker/build_scripts/finalize.sh
sed -i 's/^${TOOLS_PATH}\/bin\/pipx/LD_LIBRARY_PATH=\/opt\/python\/cp310-cp310\/lib ${TOOLS_PATH}\/bin\/pipx/g' docker/build_scripts/finalize.sh
sed -i 's/^[ \t]*$PYTHON/LD_LIBRARY_PATH=$(dirname $PYTHON)\/..\/lib $PYTHON/g' tests/run_tests.sh
sed -i 's/$(${PYTHON}/$(LD_LIBRARY_PATH=$(dirname ${PYTHON})\/..\/lib ${PYTHON}/g' tests/run_tests.sh
sed -i 's/$(${LINK_PREFIX}/$(LD_LIBRARY_PATH=$(dirname ${PYTHON})\/..\/lib ${LINK_PREFIX}/g' tests/run_tests.sh
sed -i '/ssl-check.py/s/^/#/g' tests/run_tests.sh
sed -i 's/^auditwheel --version/export LD_LIBRARY_PATH=\/opt\/python\/cp310-cp310\/lib\nauditwheel --version/g' tests/run_tests.sh
sed -i '$i\ENV LD_LIBRARY_PATH=\/opt\/python\/cp38-cp38\/lib:\/opt\/python\/cp310-cp310\/lib' docker/Dockerfile
sed -i 's/^ln -s $(python -c/LD_LIBRARY_PATH=\/opt\/python\/cp310-cp310\/lib \/opt\/python\/cp310-cp310\/bin\/pip3 install certifi \nln -s $(LD_LIBRARY_PATH=\/opt\/python\/cp310-cp310\/lib \/opt\/python\/cp310-cp310\/bin\/python3 -c/g' docker/build_scripts/finalize.sh
git apply ../build_docker/patch/shared_python_based_02cacafe8f8c82b06f71b7e9c242fd7b187f2c34.patch
PLATFORM=${{ matrix.arch }} POLICY=manylinux2014 COMMIT_SHA=latest ./build.sh
docker image tag quay.io/pypa/manylinux2014_${{ matrix.arch }}:latest smartbrave/manylinux2014_${{ matrix.arch }}_shared_python:latest
Expand Down

0 comments on commit f9b32aa

Please sign in to comment.