From fa71c6e84c16418ffc5568c06aed863027cb238f Mon Sep 17 00:00:00 2001 From: MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz> Date: Thu, 19 Mar 2026 09:21:34 +0100 Subject: [PATCH] ci: Avoid intermittent Windows generate download failures --- .github/ci-windows.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/ci-windows.py b/.github/ci-windows.py index 236c6301d01..e21a7da94a3 100755 --- a/.github/ci-windows.py +++ b/.github/ci-windows.py @@ -8,6 +8,7 @@ import os import shlex import subprocess import sys +import time from pathlib import Path sys.path.append(str(Path(__file__).resolve().parent.parent / "test")) @@ -73,7 +74,12 @@ def generate(ci_type): "--preset", "vs2026", ] + GENERATE_OPTIONS[ci_type] - run(command) + if run(command, check=False).returncode != 0: + print("=== ⚠️ ===") + print("Generate failure! Network issue? Retry once ...") + time.sleep(12) + print("=== ⚠️ ===") + run(command) def build(_ci_type):