Skip to content

Commit 9231370

Browse files
committed
Use local pypi mirror for self-hosted runners
1 parent 8efd7aa commit 9231370

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

.github/workflows/build_wheels_linux_arm.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ jobs:
4848
SDIST: ${{ matrix.build_sdist || 0 }}
4949
ENABLE_HEADLESS: ${{ matrix.without_gui }}
5050
ENABLE_CONTRIB: ${{ matrix.with_contrib }}
51+
PIP_DEFAULT_INDEX_URL: https://pypi.tuna.tsinghua.edu.cn/simple
5152
steps:
5253
- name: Cleanup
5354
run: find . -mindepth 1 -delete
@@ -98,6 +99,7 @@ jobs:
9899
CONFIG_PATH: travis_config.sh
99100
DOCKER_TEST_IMAGE: multibuild/focal_arm64v8
100101
UNICODE_WIDTH: 32
102+
PIP_DEFAULT_INDEX_URL: https://pypi.tuna.tsinghua.edu.cn/simple
101103
steps:
102104
- name: Cleanup
103105
run: find . -mindepth 1 -delete

.github/workflows/build_wheels_macos_m1.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ jobs:
3434
SDIST: ${{ matrix.build_sdist || 0 }}
3535
ENABLE_HEADLESS: ${{ matrix.without_gui }}
3636
ENABLE_CONTRIB: ${{ matrix.with_contrib }}
37+
PIP_DEFAULT_INDEX_URL: https://pypi.tuna.tsinghua.edu.cn/simple
3738
steps:
3839
- name: Cleanup
3940
run: find . -mindepth 1 -delete
@@ -82,6 +83,7 @@ jobs:
8283
env:
8384
OPENCV_TEST_DATA_PATH: ${{ github.workspace }}/opencv_extra/testdata
8485
PYLINT_TEST_FILE: ${{ github.workspace }}/opencv/samples/python/squares.py
86+
PIP_DEFAULT_INDEX_URL: https://pypi.tuna.tsinghua.edu.cn/simple
8587
steps:
8688
- name: Cleanup
8789
run: find . -mindepth 1 -delete

travis_config.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
#See multibuild/README.rst
66
echo "=== Loading config.sh === "
77

8+
export PIP_DEFAULT_INDEX_URL=https://pypi.tuna.tsinghua.edu.cn/simple
9+
810
# To see build progress
911
function build_wheel {
1012
build_bdist_wheel $@

0 commit comments

Comments
 (0)