Add ESPHOME_PCH_STRICT and enforce it in the esp8266/esp32/rp2 image compile tests

This commit is contained in:
J. Nick Koston
2026-08-26 22:29:53 -05:00
parent 7449623022
commit 264ccc0989
8 changed files with 116 additions and 2 deletions
+12
View File
@@ -201,6 +201,17 @@ jobs:
- ln882x-arduino
- nrf52
- host
# Fail the job if the precompiled header silently degrades on the
# platforms where it must work (libretiny needs a toolchain bump)
include:
- id: esp8266-arduino
pch_strict: "1"
- id: esp32-idf-esp-idf
pch_strict: "1"
- id: esp32-arduino-esp-idf
pch_strict: "1"
- id: rp2040-arduino
pch_strict: "1"
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Download image artifact
@@ -212,6 +223,7 @@ jobs:
- name: Compile ${{ matrix.id }}
run: |
docker run --rm \
-e ESPHOME_PCH_STRICT="${{ matrix.pch_strict || '0' }}" \
-v "${{ github.workspace }}/docker/test_configs:/config" \
"ghcr.io/esphome/esphome-amd64:${{ needs.check-docker.outputs.tag }}" \
compile "${{ matrix.id }}.yaml"