ci: Avoid intermittent Windows generate download failures

This commit is contained in:
MarcoFalke
2026-03-19 09:21:34 +01:00
parent a7514c1aa9
commit fa71c6e84c

View File

@@ -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):