fix(ci): fix find pattern for soc struct headers check

Use find -path instead of ** for portability and to cover
register/<version>/soc/*_struct.h (e.g. esp32p4/hw_ver_3).
This commit is contained in:
Chen Jichang
2026-02-04 15:51:51 +08:00
parent 5de0c45dd6
commit 90f904ab2f

View File

@@ -71,7 +71,7 @@ check_chip_support_components:
expire_in: 1 week
script:
- python tools/ci/check_soc_headers_leak.py
- find ${IDF_PATH}/components/soc/**/include/soc/ ${IDF_PATH}/components/soc/**/register/soc/ -name "*_struct.h" -print0 | xargs -0 -n1 ./tools/ci/check_soc_struct_headers.py
- find ${IDF_PATH}/components/soc \( -path "*/include/soc/*_struct.h" -o -path "*/register/soc/*_struct.h" -o -path "*/register/*/soc/*_struct.h" \) -print0 | xargs -0 -n1 ./tools/ci/check_soc_struct_headers.py
- tools/ci/check_esp_memory_utils_headers.sh
check_esp_err_to_name: