mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-04-06 21:57:54 +02:00
ci: Avoid intermittent Windows generate download failures
This commit is contained in:
8
.github/ci-windows.py
vendored
8
.github/ci-windows.py
vendored
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user