Skip to content

Commit fbce635

Browse files
committed
fix
1 parent 6b94a91 commit fbce635

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

.github/scripts/on-push-idf.sh

+9
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,15 @@ idf_component_examples=$(find ./components/arduino-esp32/idf_component_examples
1313
for example in $idf_component_examples; do
1414
idf.py -C "$example" set-target "$IDF_TARGET"
1515

16+
if [ -f "$example"/ci.json ]; then
17+
# If the target is listed as false, skip the sketch. Otherwise, include it.
18+
is_target=$(jq -r --arg target "$IDF_TARGET" '.targets[$target]' "$example"/ci.json)
19+
if [[ "$is_target" == "false" ]]; then
20+
printf "\n\033[93mSkipping %s for target %s\033[0m\n\n" "$example" "$IDF_TARGET"
21+
continue
22+
fi
23+
fi
24+
1625
has_requirements=$(${CHECK_REQUIREMENTS} "$example" "$example/sdkconfig")
1726
if [ "$has_requirements" -eq 0 ]; then
1827
printf "\n\033[93m%s does not meet the requirements for %s. Skipping...\033[0m\n\n" "$example" "$IDF_TARGET"

.github/workflows/push.yml

+6
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,12 @@ jobs:
280280
chmod a+x ./components/arduino-esp32/.github/scripts/*
281281
./components/arduino-esp32/.github/scripts/on-push-idf.sh
282282
283+
- name: Upload generated sdkconfig files for debugging
284+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
285+
with:
286+
name: sdkconfig-${{ matrix.idf_target }}
287+
path: ./components/arduino-esp32/idf_component_examples/**/sdkconfig
288+
283289
# Save artifacts to gh-pages
284290
save-master-artifacts:
285291
name: Save master artifacts

idf_component_examples/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
build/
22
managed_components/
33
dependencies.lock
4+
sdkconfig

0 commit comments

Comments
 (0)