Enable the pch on esp32 via PlatformIO for CI speed

This commit is contained in:
J. Nick Koston
2026-08-27 08:47:05 -05:00
parent 8180134d30
commit b4d6633b19
5 changed files with 19 additions and 9 deletions
+3 -3
View File
@@ -1,16 +1,16 @@
"""The host pch prefix must keep resolving; a rename would silently
"""The pch prefix must keep resolving; a rename would silently
collapse the precompiled set to defines.h with strict CI still green."""
from pathlib import Path
import re
from esphome.components.host import HOST_PCH_PREFIX
from esphome.build_helpers.pch import PCH_PREFIX_HEADER
REPO = Path(__file__).parents[2]
def test_host_pch_prefix_resolves() -> None:
prefix = REPO / HOST_PCH_PREFIX
prefix = REPO / PCH_PREFIX_HEADER
assert prefix.is_file()
body = prefix.read_text()
includes = re.findall(r'#include "([^"]+)"', body)