diff --git a/.github/workflows/build_wheels_macos_m1.yml b/.github/workflows/build_wheels_macos_m1.yml index b51801ab..5e60c47d 100644 --- a/.github/workflows/build_wheels_macos_m1.yml +++ b/.github/workflows/build_wheels_macos_m1.yml @@ -34,6 +34,7 @@ jobs: SDIST: ${{ matrix.build_sdist || 0 }} ENABLE_HEADLESS: ${{ matrix.without_gui }} ENABLE_CONTRIB: ${{ matrix.with_contrib }} + PIP_INDEX_URL: https://pypi.tuna.tsinghua.edu.cn/simple steps: - name: Cleanup run: find . -mindepth 1 -delete @@ -82,6 +83,7 @@ jobs: env: OPENCV_TEST_DATA_PATH: ${{ github.workspace }}/opencv_extra/testdata PYLINT_TEST_FILE: ${{ github.workspace }}/opencv/samples/python/squares.py + PIP_INDEX_URL: https://pypi.tuna.tsinghua.edu.cn/simple steps: - name: Cleanup run: find . -mindepth 1 -delete diff --git a/travis_config.sh b/travis_config.sh index 366d35ad..10182f91 100644 --- a/travis_config.sh +++ b/travis_config.sh @@ -36,6 +36,12 @@ else echo " > Linux environment " export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/Qt5.15.0/lib export MAKEFLAGS="-j$(grep -E '^processor[[:space:]]*:' /proc/cpuinfo | wc -l)" + CURRENT_ARCH=$(uname -m) + if [[ $CURRENT_ARCH == 'aarch64' ]]; then + # To avoid network issues with pypi.org on OpenCV CN machines + export PIP_INDEX_URL=https://pypi.tuna.tsinghua.edu.cn/simple + echo "Running for linux aarch64" + fi fi if [ -n "$IS_OSX" ]; then