ci: fallback install V — curl puis git sans submodules si GH offline
CI / build (push) Failing after 10s
CI / build (push) Failing after 10s
This commit is contained in:
+16
-4
@@ -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: |
|
||||
|
||||
Reference in New Issue
Block a user