Skip to content

Commit 32f8db3

Browse files
committed
add local config toml file, to separate the idf build parameters
1 parent 910a06e commit 32f8db3

File tree

2 files changed

+23
-8
lines changed

2 files changed

+23
-8
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Config file for build_and_run_idf_examples.yml workflow
2+
3+
paths = [
4+
"examples/peripherals/usb/device", # ESP-IDF USB Device examples path
5+
]
6+
7+
recursive = true
8+
check_warnings = true
9+
target = "all"
10+
11+
# Build related options (we need them to place build artifacts via target folders)
12+
build_dir = "build_@t_@w"
13+
work_dir = "@f_@t_@w"

.github/workflows/build_and_run_idf_examples.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ jobs:
1616
env:
1717
IDF_COMP_MAN_VER: "2.4.3"
1818
IDF_BUILD_APPS_VER: "2.13.1"
19+
CONFIG_PATH: ${{ github.workspace }}/.github/ci/.build_and_run_idf_examples_config.toml
1920
steps:
2021
- uses: actions/checkout@v4
2122
- name: Install Python dependencies
@@ -39,19 +40,20 @@ jobs:
3940
export EXAMPLES_PATH="${IDF_PATH}/examples/peripherals/usb/device"
4041
export MANIFEST_FILE="${IDF_PATH}/examples/peripherals/.build-test-rules.yml"
4142
python .github/ci/override_managed_component.py tinyusb . ${EXAMPLES_PATH}/tusb_*
42-
idf-build-apps find --paths ${EXAMPLES_PATH}/ --recursive --target all --manifest-files ${MANIFEST_FILE} --manifest-rootpath ${IDF_PATH}
43-
idf-build-apps build --paths ${EXAMPLES_PATH}/ --recursive --target all --manifest-files ${MANIFEST_FILE} --manifest-rootpath ${IDF_PATH}
43+
cd ${IDF_PATH}
44+
idf-build-apps find --config-file ${CONFIG_PATH} --manifest-file ${MANIFEST_PATH}
45+
idf-build-apps build --config-file ${CONFIG_PATH} --manifest-file ${MANIFEST_PATH}
4446
- uses: actions/upload-artifact@v4
4547
with:
4648
# We upload only the USB Device example binaries to run them on the target
4749
name: usb_device_tusb_apps_bin_${{ matrix.idf_ver }}
4850
path: |
49-
/opt/esp/idf/examples/peripherals/usb/device/tusb_*/build/bootloader/bootloader.bin
50-
/opt/esp/idf/examples/peripherals/usb/device/tusb_*/build/partition_table/partition-table.bin
51-
/opt/esp/idf/examples/peripherals/usb/device/tusb_*/build/tusb_*.bin
52-
/opt/esp/idf/examples/peripherals/usb/device/tusb_*/build/tusb_*.elf
53-
/opt/esp/idf/examples/peripherals/usb/device/tusb_*/build/flasher_args.json
54-
/opt/esp/idf/examples/peripherals/usb/device/tusb_*/build/config/sdkconfig.json
51+
**/build_esp*/bootloader/bootloader.bin
52+
**/build_esp*/partition_table/partition-table.bin
53+
**/build_esp*/tusb_*.bin
54+
**/build_esp*/tusb_*.elf
55+
**/build_esp*/flasher_args.json
56+
**/build_esp*/config/sdkconfig.json
5557
if-no-files-found: error
5658
run-target:
5759
name: Run USB Device examples

0 commit comments

Comments
 (0)