File tree 7 files changed +42
-5
lines changed
7 files changed +42
-5
lines changed Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ set -e
4
+
5
+ CHECK_REQUIREMENTS=" ./components/arduino-esp32/.github/scripts/sketch_utils.sh check_requirements"
6
+
7
+ # Export IDF environment
8
+ . ${IDF_PATH} /export.sh
9
+
10
+ # Find all sub-folders in ./components/arduino-esp32/idf_component_examples and save them in a variable
11
+ idf_component_examples=$( find ./components/arduino-esp32/idf_component_examples -type d)
12
+
13
+ for example in $idf_component_examples ; do
14
+ idf.py -C " $example " set-target " $IDF_TARGET "
15
+
16
+ has_requirements=$( ${CHECK_REQUIREMENTS} " $example " " $example /sdkconfig" )
17
+ if [ " $has_requirements " -eq 1 ]; then
18
+ echo " $example does not meet the requirements for $IDF_TARGET "
19
+ continue
20
+ fi
21
+
22
+ echo " Building $example "
23
+ idf.py -C " $example " -DEXTRA_COMPONENT_DIRS=" $PWD /components" build
24
+ done
Original file line number Diff line number Diff line change 31
31
- " !libraries/**.properties"
32
32
- " !libraries/**.py"
33
33
- " package/**"
34
+ - " idf_component_examples/**"
34
35
- " tools/**.py"
35
36
- " platform.txt"
36
37
- " programmers.txt"
@@ -125,6 +126,7 @@ jobs:
125
126
- 'Kconfig.projbuild'
126
127
- 'CMakeLists.txt'
127
128
- "variants/esp32c2/**/*"
129
+ - "idf_component_examples/**"
128
130
129
131
- name : Set chunks
130
132
id : set-chunks
@@ -271,11 +273,7 @@ jobs:
271
273
env :
272
274
IDF_TARGET : ${{ matrix.idf_target }}
273
275
shell : bash
274
- run : |
275
- . ${IDF_PATH}/export.sh
276
- idf.py -C ./components/arduino-esp32/idf_component_examples/hello_world -DEXTRA_COMPONENT_DIRS=$PWD/components build
277
- idf.py -C ./components/arduino-esp32/idf_component_examples/hw_cdc_hello_world -DEXTRA_COMPONENT_DIRS=$PWD/components build
278
- idf.py -C ./components/arduino-esp32/idf_component_examples/esp_matter_light -DEXTRA_COMPONENT_DIRS=$PWD/components build
276
+ run : ./components/arduino-esp32/.github/scripts/on-push-idf.sh
279
277
280
278
# Save artifacts to gh-pages
281
279
save-master-artifacts :
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ set(PROJECT_VER_NUMBER 1)
8
8
# This should be done before using the IDF_TARGET variable.
9
9
include ($ENV{IDF_PATH} /tools/cmake/project.cmake)
10
10
11
+ idf_build_set_property(MINIMAL_BUILD ON )
11
12
project (arduino_managed_component_light)
12
13
13
14
# WARNING: This is just an example for using key for decrypting the encrypted OTA image
Original file line number Diff line number Diff line change
1
+ {
2
+ "requires" : [
3
+ " CONFIG_SOC_WIFI_SUPPORTED=y" ,
4
+ " CONFIG_ESP_MATTER_ENABLE_DATA_MODEL=y"
5
+ ]
6
+ }
Original file line number Diff line number Diff line change 5
5
cmake_minimum_required (VERSION 3.16)
6
6
7
7
include ($ENV{IDF_PATH} /tools/cmake/project.cmake)
8
+
9
+ idf_build_set_property(MINIMAL_BUILD ON )
8
10
project (main)
Original file line number Diff line number Diff line change @@ -9,4 +9,5 @@ include($ENV{IDF_PATH}/tools/cmake/project.cmake)
9
9
list (APPEND compile_definitions "ARDUINO_USB_CDC_ON_BOOT=1" )
10
10
list (APPEND compile_definitions "ARDUINO_USB_MODE=1" )
11
11
12
+ idf_build_set_property(MINIMAL_BUILD ON )
12
13
project (hw_cdc_hello_world)
Original file line number Diff line number Diff line change
1
+ {
2
+ "requires" : [
3
+ " CONFIG_SOC_USB_SERIAL_JTAG_SUPPORTED=y"
4
+ ]
5
+ }
You can’t perform that action at this time.
0 commit comments