From 29e4fa8e97362742e5fadd653cb85a49f2e1db34 Mon Sep 17 00:00:00 2001 From: Aleksandr Meshchriakov Date: Tue, 28 Apr 2026 16:35:57 +0200 Subject: [PATCH] ci: bound uv bootstrap time --- .gitea/workflows/ci-cd.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/ci-cd.yml b/.gitea/workflows/ci-cd.yml index 679057d..9b0f357 100644 --- a/.gitea/workflows/ci-cd.yml +++ b/.gitea/workflows/ci-cd.yml @@ -109,8 +109,10 @@ jobs: printf 'PYTHON_BIN=%s\n' "${PYTHON_BIN}" > .ci-python-env mkdir -p .ci-bin - if ! curl -LsSf "https://astral.sh/uv/${UV_VERSION}/install.sh" | env UV_INSTALL_DIR="${PWD}/.ci-bin" sh; then - curl -LsSf "https://astral.sh/uv/install.sh" | env UV_INSTALL_DIR="${PWD}/.ci-bin" sh + if command -v uv >/dev/null 2>&1; then + cp "$(command -v uv)" .ci-bin/uv + elif ! curl -LsSf --connect-timeout 5 --max-time 60 --retry 1 "https://astral.sh/uv/${UV_VERSION}/install.sh" | env UV_INSTALL_DIR="${PWD}/.ci-bin" sh; then + curl -LsSf --connect-timeout 5 --max-time 60 --retry 1 "https://astral.sh/uv/install.sh" | env UV_INSTALL_DIR="${PWD}/.ci-bin" sh fi .ci-bin/uv --version