diff --git a/.github/workflows/pymnn_release.yml b/.github/workflows/pymnn_release.yml index bc2f45426..20bd010ae 100644 --- a/.github/workflows/pymnn_release.yml +++ b/.github/workflows/pymnn_release.yml @@ -15,8 +15,8 @@ jobs: include: - { os: ubuntu-latest, arch: x86_64, build: 'cp*-manylinux*' } - { os: windows-latest, arch: AMD64, build: 'cp*' } - - { os: macos-latest, arch: x86_64, build: 'cp*' } - - { os: macos-14, arch: arm64, build: 'cp*' } + - { os: macos-13, arch: x86_64, build: 'cp*' } + - { os: macos-14, arch: arm64, build: 'cp*' } steps: - uses: actions/checkout@v3 diff --git a/pymnn/pip_package/pyproject.toml b/pymnn/pip_package/pyproject.toml index c178a4ebc..57cc5503b 100644 --- a/pymnn/pip_package/pyproject.toml +++ b/pymnn/pip_package/pyproject.toml @@ -11,11 +11,12 @@ build-backend = "setuptools.build_meta" [tool.cibuildwheel] test-skip = [ + "*", "cp36-*", "*-macosx_arm64" ] test-requires = [ - "opencv-python==4.6.0.66", + "opencv-python", "numpy", "torch" ] @@ -41,6 +42,8 @@ repair-wheel-command = "" build = "cp*-manylinux*" skip = "pp*" before-all = [ + "sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*", + "sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://mirrors.aliyun.com|g' /etc/yum.repos.d/CentOS-*", "yum install -y wget", "pushd pymnn/pip_package", "python3 build_deps.py --torch",