From 4964362ff4201f6859d7d4320ab873a05b9396e5 Mon Sep 17 00:00:00 2001 From: Bruno Charest Date: Wed, 5 Aug 2026 21:31:13 -0400 Subject: [PATCH] =?UTF-8?q?ci:=20fallback=20install=20V=20=E2=80=94=20curl?= =?UTF-8?q?=20puis=20git=20sans=20submodules=20si=20GH=20offline?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/ci.yml | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 8741ca2..5a0f929 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -16,10 +16,22 @@ jobs: - name: Install V run: | - curl -sL https://github.com/vlang/v/releases/latest/download/v_linux.zip -o /tmp/v.zip - unzip -q /tmp/v.zip -d /opt/v - ln -s /opt/v/v /usr/local/bin/v - v version + set -e + echo "Trying to download V from GitHub..." + if curl -fsSL --connect-timeout 10 https://github.com/vlang/v/releases/latest/download/v_linux.zip -o /tmp/v.zip; then + unzip -q /tmp/v.zip -d /opt/v + ln -s /opt/v/v /usr/local/bin/v + else + echo "GitHub unreachable — installing V from source (no submodules)..." + git clone --depth 1 --single-branch --recurse-submodules=no https://github.com/vlang/v /opt/v 2>/dev/null || true + if [ -f /opt/v/v ]; then + ln -s /opt/v/v /usr/local/bin/v + else + cd /opt/v && make without_tcc 2>/dev/null || make 2>/dev/null || true + ln -s /opt/v/v /usr/local/bin/v 2>/dev/null || true + fi + fi + echo "V version:" && v version - name: Build Linux x86_64 run: |