mirror of
https://github.com/esphome/esphome.git
synced 2026-10-11 22:04:16 +00:00
[ci] Compile an ESP8266 config with the native toolchain on Windows (#20467)
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user