Skip to content

Commit c7a2e7d

Browse files
committed
provide the config file to esp-idf and esp-usb repos
1 parent 6a1e9c0 commit c7a2e7d

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/build_and_run_esp_usb_test_apps.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ jobs:
2121
IDF_COMP_MAN_VER: "2.4.3"
2222
IDF_BUILD_APPS_VER: "2.13.1"
2323
ESP_USB_PATH: esp-usb
24+
ESP_USB_CONFIG_FILE: esp-usb/.idf_build_apps.toml
2425
ESP_USB_MANIFEST: esp-usb/.build-test-rules.yml
2526
ESP_TINYUSB_TEST_APPS: esp-usb/device/esp_tinyusb/test_apps
2627
steps:
@@ -39,7 +40,7 @@ jobs:
3940
export EXTRA_CFLAGS="${PEDANTIC_FLAGS} -Wstrict-prototypes"
4041
export EXTRA_CXXFLAGS="${PEDANTIC_FLAGS}"
4142
python .github/ci/override_managed_component.py tinyusb . ${{ env.ESP_TINYUSB_TEST_APPS }}/*/
42-
idf-build-apps find --paths ${{ env.ESP_TINYUSB_TEST_APPS }}/ --recursive --target all --manifest-files ${{ env.ESP_USB_MANIFEST }} --manifest-rootpath ${{ env.ESP_USB_PATH }} --build-dir "build_@t_@w"
43+
idf-build-apps find --config-file ${{ env.ESP_USB_CONFIG_FILE}} -p ${{ env.ESP_TINYUSB_TEST_APPS }} --recursive -t all --manifest-files ${{ env.ESP_USB_MANIFEST }} --manifest-rootpath ${{ env.ESP_USB_PATH }} --build-dir "build_@t_@w"
4344
# idf-build-apps build --paths ${{ env.ESP_TINYUSB_TEST_APPS }}/ --recursive --target all --manifest-files ${{ env.ESP_USB_MANIFEST }} --manifest-rootpath ${{ env.ESP_USB_PATH }} --build-dir "build_@t_@w"
4445
- uses: actions/upload-artifact@v4
4546
with:

.github/workflows/build_and_run_idf_examples.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,12 @@ jobs:
2727
shell: bash
2828
run: |
2929
. ${IDF_PATH}/export.sh
30+
# Hint: To build network example we use default config and network build rules provided by IDF
31+
export CONFIG_PATH="${IDF_PATH}/.idf_build_apps.toml"
3032
export EXAMPLES_PATH="${IDF_PATH}/examples/network/sta2eth"
3133
export MANIFEST_FILE="${IDF_PATH}/examples/network/.build-test-rules.yml"
3234
python .github/ci/override_managed_component.py tinyusb . ${EXAMPLES_PATH}
33-
idf-build-apps find --paths ${EXAMPLES_PATH}/ --target esp32s2 --manifest-files ${MANIFEST_FILE} --manifest-rootpath ${IDF_PATH}
35+
idf-build-apps find --config-file ${CONFIG_PATH} -p ${EXAMPLES_PATH} -t esp32s2 --manifest-files ${MANIFEST_FILE} --manifest-rootpath ${IDF_PATH}
3436
# idf-build-apps build --paths ${EXAMPLES_PATH}/ --target esp32s2 --manifest-files ${MANIFEST_FILE} --manifest-rootpath ${IDF_PATH}
3537
- name: Build USB Device examples
3638
shell: bash

0 commit comments

Comments
 (0)