mirror of
https://github.com/esphome/esphome.git
synced 2026-10-06 19:06:37 +00:00
Reject unsupported CLI toolchains on every platform and complete the native CI triggers
This commit is contained in:
@@ -1053,6 +1053,11 @@ def _resolve_toolchain(value: ConfigType) -> ConfigType:
|
||||
# CORE.toolchain instead of re-resolving it from the config dict.
|
||||
if CORE.toolchain is None:
|
||||
CORE.toolchain = value.get(CONF_TOOLCHAIN, Toolchain.ESP_IDF)
|
||||
if CORE.toolchain not in (Toolchain.PLATFORMIO, Toolchain.ESP_IDF):
|
||||
raise cv.Invalid(
|
||||
f"Unsupported toolchain '{CORE.toolchain.value}' for ESP32. "
|
||||
"Supported toolchains are 'platformio' and 'esp-idf'."
|
||||
)
|
||||
return value
|
||||
|
||||
|
||||
|
||||
@@ -128,6 +128,11 @@ def set_core_data(config: ConfigType) -> ConfigType:
|
||||
def _resolve_toolchain(config: ConfigType) -> ConfigType:
|
||||
if CORE.toolchain is None:
|
||||
CORE.toolchain = config.get(CONF_TOOLCHAIN, Toolchain.SDK_NRF)
|
||||
if CORE.toolchain not in (Toolchain.PLATFORMIO, Toolchain.SDK_NRF):
|
||||
raise cv.Invalid(
|
||||
f"Unsupported toolchain '{CORE.toolchain.value}' for nRF52. "
|
||||
"Supported toolchains are 'platformio' and 'sdk-nrf'."
|
||||
)
|
||||
return config
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user