From 70d1079ccda8bd5078c1f8e88a87a2b04d6f0fd5 Mon Sep 17 00:00:00 2001 From: Roman Priesol Date: Fri, 4 Dec 2026 11:54:56 +0100 Subject: [PATCH] CI: skip configs whose included package sets a Zephyr platform (XIAO STM32C5 nodes) --- .github/workflows/ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f9a2351..9621437 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -56,7 +56,9 @@ jobs: run: | for f in ${{ steps.changed.outputs.all_changed_files }}; do # Zephyr RTOS platforms need the esphomeplatformzephyr fork, upstream doesn't know them yet - if grep -qE '^(nrf|stm32|nxp|renesas|silabs):' "$f"; then echo "Skipping $f (zephyr fork)"; continue; fi + # (the platform key may also come from an !include'd package, e.g. common/xiao_stm32c5_canopen.yaml) + files="$f $(grep -oE '!include [^ ]+' "$f" | cut -d' ' -f2)" + if grep -qsE '^(nrf|stm32|nxp|renesas|silabs):' $files; then echo "Skipping $f (zephyr fork)"; continue; fi echo "Validating $f..." esphome config "$f" done