Skip to content

Commit

Permalink
update release build base image from centos7 to Almalinux 8
Browse files Browse the repository at this point in the history
  • Loading branch information
taoboyang committed Jul 31, 2024
1 parent 187970d commit 9f532de
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 13 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/build_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -80,11 +78,10 @@ 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: >
(./scripts/build_ffmpeg.sh --device=${{ matrix.device }})
CIBW_REPAIR_WHEEL_COMMAND_LINUX:
Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -91,7 +87,7 @@ 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 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}
Expand Down
8 changes: 8 additions & 0 deletions scripts/build_ffmpeg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,14 @@ 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" ]]
then
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 -
Expand Down

0 comments on commit 9f532de

Please sign in to comment.