From d40d19ae96f9196899378c43657e36fdb2b4a419 Mon Sep 17 00:00:00 2001 From: "tao.chen" <93983997+taochen-ct@users.noreply.github.com> Date: Tue, 21 Jul 2026 19:06:49 +0800 Subject: [PATCH] ci: point uv build at Tsinghua PyPI mirror via UV_DEFAULT_INDEX MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The self-hosted astral-uv runner is in China; pulling build deps from pypi.org is slow and often times out. Set UV_DEFAULT_INDEX on the 'Build package' step so uv's build-environment resolution goes through the Tsinghua mirror. This complements the [tool.uv.index] url=... block in pyproject.toml — env wins over the file config when both are present, so the mirror is used consistently. Co-Authored-By: Claude --- .github/workflows/build.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 17105b5..18257f7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -21,6 +21,11 @@ jobs: uses: actions/checkout@v4 - name: Build package + env: + # Use the Tsinghua PyPI mirror for build-environment resolution; + # the self-hosted runner is in China and the default pypi.org is + # too slow / unreliable for build dependency install. + UV_DEFAULT_INDEX: "https://pypi.tuna.tsinghua.edu.cn/simple/" run: uv build - name: Upload wheel artifacts