From 9ea6d97b88dcb53e4e22e7f562ea2bc6f80e2f8e Mon Sep 17 00:00:00 2001 From: "zhaode.wzd" Date: Tue, 30 Jul 2024 17:33:28 +0800 Subject: [PATCH] [CI:Update] update pymnn_release action. --- .github/workflows/pymnn_release.yml | 4 ++-- pymnn/pip_package/pyproject.toml | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) 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",