[ci] Compile an ESP8266 config with the native toolchain on Windows (#20467)

This commit is contained in:
J. Nick Koston
2026-10-10 08:00:40 -10:00
committed by GitHub
parent 9f4a7cf5cc
commit 3447b68136
2 changed files with 90 additions and 1 deletions
+4 -1
View File
@@ -21,6 +21,7 @@ from dataclasses import dataclass
import hashlib
import os
from pathlib import Path
import shutil
import subprocess
import sys
import time
@@ -83,7 +84,9 @@ def show_disk_space_if_ci(esphome_command: str) -> None:
print("=" * 80)
# Use sys.stdout.flush() to ensure output appears immediately
sys.stdout.flush()
subprocess.run(["df", "-h"], check=False, stdout=sys.stdout, stderr=sys.stderr)
# Windows has no df
if df := shutil.which("df"):
subprocess.run([df, "-h"], check=False, stdout=sys.stdout, stderr=sys.stderr)
print("=" * 80 + "\n")
sys.stdout.flush()