diff --git a/.github/workflows/build_wheels.yml b/.github/workflows/build_wheels.yml index 050759e3..cd3deceb 100644 --- a/.github/workflows/build_wheels.yml +++ b/.github/workflows/build_wheels.yml @@ -19,11 +19,9 @@ jobs: strategy: matrix: py_ver_prefix: [cp36, cp37, cp38, cp39, cp310] - linux_arch: [x86_64, i686, aarch64, s390x, ppc64le] #the maximum timeout of a job is 360 minutes, which is easy to time out, so we compile different system architectures separately. + linux_arch: [x86_64, aarch64, s390x, ppc64le] #the maximum timeout of a job is 360 minutes, which is easy to time out, so we compile different system architectures separately. device: [cpu, gpu] exclude: - - linux_arch: i686 - device: gpu - linux_arch: aarch64 device: gpu - linux_arch: s390x @@ -80,12 +78,12 @@ jobs: #CIBW_MANYLINUX_AARCH64_IMAGE: ghcr.io/${{ github.repository }}_manylinux2014_aarch64_shared_python:latest #CIBW_MANYLINUX_PPC64LE_IMAGE: ghcr.io/${{ github.repository }}_manylinux2014_ppc64le_shared_python:latest #CIBW_MANYLINUX_S390X_IMAGE: ghcr.io/${{ github.repository }}_manylinux2014_s390x_shared_python:latest - CIBW_MANYLINUX_X86_64_IMAGE: smartbrave/manylinux2014_x86_64_shared_python:latest - CIBW_MANYLINUX_I686_IMAGE: smartbrave/manylinux2014_i686_shared_python:latest - CIBW_MANYLINUX_AARCH64_IMAGE: smartbrave/manylinux2014_aarch64_shared_python:latest - CIBW_MANYLINUX_PPC64LE_IMAGE: smartbrave/manylinux2014_ppc64le_shared_python:latest - CIBW_MANYLINUX_S390X_IMAGE: smartbrave/manylinux2014_s390x_shared_python:latest + CIBW_MANYLINUX_X86_64_IMAGE: babitmf/manylinux_2_28_x86_64_shared_python:latest + CIBW_MANYLINUX_AARCH64_IMAGE: babitmf/manylinux_2_28_aarch64_shared_python:latest + CIBW_MANYLINUX_PPC64LE_IMAGE: babitmf/manylinux_2_28_ppc64le_shared_python:latest + CIBW_MANYLINUX_S390X_IMAGE: babitmf/manylinux_2_28_s390x_shared_python:latest CIBW_BEFORE_ALL_LINUX: > + (curl -fsSL -O https://raw.githubusercontent.com/cloudspinx/centos7-vault-repositories/main/generate_base_repos.sh && curl -fsSL -O https://raw.githubusercontent.com/cloudspinx/centos7-vault-repositories/main/enable_repos.sh && bash generate_base_repos.sh && yes | bash enable_repos.sh && mkdir ~/repos_backup && mv /etc/yum.repos.d/* ~/repos_backup && cp -r centos7_repos/* /etc/yum.repos.d/ && yum clean all && yum makecache fast) && (./scripts/build_ffmpeg.sh --device=${{ matrix.device }}) CIBW_REPAIR_WHEEL_COMMAND_LINUX: tmp_dir=$(mktemp -d) && diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index adaad318..39103037 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -28,10 +28,6 @@ jobs: arch: x86_64 py_ver_prefix: cp39 device: gpu - - os: ubuntu-20.04 - arch: i686 - py_ver_prefix: cp39 - device: cpu - os: ubuntu-20.04 arch: aarch64 py_ver_prefix: cp39 @@ -91,7 +87,8 @@ jobs: if: runner.os == 'Linux' run: | tmp_file=$(mktemp -p .) - echo "FROM smartbrave/manylinux2014_${{ matrix.arch }}_shared_python" >>${tmp_file} + echo "FROM babitmf/manylinux_2_28_${{ matrix.arch }}_shared_python" >>${tmp_file} + echo "RUN (curl -fsSL -O https://raw.githubusercontent.com/cloudspinx/centos7-vault-repositories/main/generate_base_repos.sh && curl -fsSL -O https://raw.githubusercontent.com/cloudspinx/centos7-vault-repositories/main/enable_repos.sh && bash generate_base_repos.sh && yes | bash enable_repos.sh && mkdir ~/repos_backup && mv /etc/yum.repos.d/* ~/repos_backup && cp -r centos7_repos/* /etc/yum.repos.d/ && yum clean all && yum makecache fast)" >>${tmp_file} echo "RUN yum -y install binutils-devel openssl-devel" >>${tmp_file} echo "WORKDIR /root" >>${tmp_file} echo "ENV PATH=\${PATH}:/opt/python/cp39-cp39/bin" >>${tmp_file} diff --git a/scripts/build_ffmpeg.sh b/scripts/build_ffmpeg.sh index fee567e6..99699b66 100755 --- a/scripts/build_ffmpeg.sh +++ b/scripts/build_ffmpeg.sh @@ -226,6 +226,13 @@ function install_cuda_linux() { add-apt-repository contrib apt-get update apt-get -y install cuda-toolkit-11-8 + elif [[ ${NAME} =~ "AlmaLinux" ]] && [[ ${VERSION_ID} == "8.10" ]] + dnf install epel-release -y + dnf update -y + yum config-manager --add-repo http://developer.download.nvidia.com/compute/cuda/repos/rhel8/x86_64/cuda-rhel8.repo + dnf install kernel-devel -y + dnf install cuda-11-8 -y + fi export PATH=${PATH}:/usr/local/cuda/bin cd -