Skip to content

Update build_manylinux_image.yml #3

Update build_manylinux_image.yml

Update build_manylinux_image.yml #3

name: Build and Deploy to PyPI
on:
push:
paths:
- .github/workflows/build_manylinux_image.yml #XXX when file is modified and merge to master
jobs:
build_manylinux:
name: Rebuild manylinux on arch ${{ matrix.arch }}
runs-on: ubuntu-20.04
strategy:
matrix:
arch: [x86_64, aarch64, ppc64le, s390x] #aarch64 is easyly timeout in github action, maybe need to build in local
timeout-minutes: 3600
steps:
- name: Check out
uses: actions/checkout@v3
with:
path: build_docker
- name: Check out manylinux repo
uses: actions/checkout@v3
with:
repository: pypa/manylinux
path: manylinux
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: rebuild manylinux images with shared python libraries for arch ${{ matrix.arch }}
run: |
cd manylinux
bash ../build_docker/patch/patch_based_02cacafe8f8c82b06f71b7e9c242fd7b187f2c34.sh
PLATFORM=${{ matrix.arch }} POLICY=manylinux_2_28 COMMIT_SHA=latest ./build.sh
docker image tag quay.io/pypa/manylinux_2_28_${{ matrix.arch }}:latest babitmf/manylinux_2_28_${{ matrix.arch }}_shared_python:latest
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Push image
run: |
docker push babitmf/manylinux_2_28_${{ matrix.arch }}_shared_python:latest