@@ -12,41 +12,35 @@ jobs:
1212 fail-fast : false
1313 runs-on : ubuntu-latest
1414 container : espressif/idf:${{ matrix.idf_ver }}
15+ env :
16+ CONFIG_PATH : ${{ github.workspace }}/.github/ci/.idf_build_examples_config.toml
1517 steps :
1618 - uses : actions/checkout@v4
1719 - name : Install Python dependencies
1820 shell : bash
1921 run : |
2022 . ${IDF_PATH}/export.sh
21- pip install --no-cache-dir idf-component-manager>=2.1.2 idf-build-apps pyyaml --upgrade
22- - name : Build Network USB related examples
23- shell : bash
24- run : |
25- . ${IDF_PATH}/export.sh
26- export EXAMPLES_PATH="${IDF_PATH}/examples/network/sta2eth"
27- export MANIFEST_FILE="${IDF_PATH}/examples/network/.build-test-rules.yml"
28- idf-build-apps find --path ${EXAMPLES_PATH}/ --target esp32s2 --manifest-file ${MANIFEST_FILE}
29- idf-build-apps build --path ${EXAMPLES_PATH}/ --target esp32s2 --manifest-file ${MANIFEST_FILE}
23+ pip install --no-cache-dir idf-component-manager>=2.1.2 idf-build-apps==2.13.1 pyyaml --upgrade
3024 - name : Build USB Device examples
3125 shell : bash
3226 run : |
3327 . ${IDF_PATH}/export.sh
34- export EXAMPLES_PATH=" ${IDF_PATH}/examples/peripherals/usb/device"
35- export MANIFEST_FILE=" ${IDF_PATH}/examples/peripherals/.build-test-rules.yml"
36- python .github/ci/override_managed_component.py tinyusb . ${EXAMPLES_PATH}/tusb_*
37- idf-build-apps find --path ${EXAMPLES_PATH}/ --recursive --target esp32s2 --manifest- file ${MANIFEST_FILE }
38- idf-build-apps build --path ${EXAMPLES_PATH}/ --recursive --target esp32s2 --manifest- file ${MANIFEST_FILE }
28+ python .github/ci/override_managed_component.py tinyusb . ${IDF_PATH}/examples/peripherals/usb/device/tusb_*
29+ python .github/ci/override_managed_component.py tinyusb . ${IDF_PATH}/examples/network/sta2eth
30+ cd ${IDF_PATH}
31+ idf-build-apps find --config- file ${CONFIG_PATH }
32+ idf-build-apps build --config- file ${CONFIG_PATH }
3933 - uses : actions/upload-artifact@v4
4034 with :
4135 # We upload only the USB Device example binaries to run them on the target
4236 name : usb_device_tusb_apps_bin_${{ matrix.idf_ver }}
4337 path : |
44- /opt/esp/idf/examples/peripherals/usb/device/tusb_*/build /bootloader/bootloader.bin
45- /opt/esp/idf/examples/peripherals/usb/device/tusb_*/build /partition_table/partition-table.bin
46- /opt/esp/idf/examples/peripherals/usb/device/tusb_*/build /tusb_*.bin
47- /opt/esp/idf/examples/peripherals/usb/device/tusb_*/build /tusb_*.elf
48- /opt/esp/idf/examples/peripherals/usb/device/tusb_*/build /flasher_args.json
49- /opt/esp/idf/examples/peripherals/usb/device/tusb_*/build /config/sdkconfig.json
38+ /opt/esp/idf/examples/peripherals/usb/device/tusb_*/build_* /bootloader/bootloader.bin
39+ /opt/esp/idf/examples/peripherals/usb/device/tusb_*/build_* /partition_table/partition-table.bin
40+ /opt/esp/idf/examples/peripherals/usb/device/tusb_*/build_* /tusb_*.bin
41+ /opt/esp/idf/examples/peripherals/usb/device/tusb_*/build_* /tusb_*.elf
42+ /opt/esp/idf/examples/peripherals/usb/device/tusb_*/build_* /flasher_args.json
43+ /opt/esp/idf/examples/peripherals/usb/device/tusb_*/build_* /config/sdkconfig.json
5044 if-no-files-found : error
5145 run-target :
5246 name : Run USB Device examples
0 commit comments