Skip to content

Commit eacecd6

Browse files
committed
update run path for idf and esp-usb
1 parent 183e5f8 commit eacecd6

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

.github/workflows/build_and_run_esp_usb_test_apps.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ jobs:
6868
container:
6969
image: python:3.11-bookworm
7070
options: --privileged --device-cgroup-rule="c 188:* rmw" --device-cgroup-rule="c 166:* rmw"
71+
env:
72+
ESP_USB_PATH: esp-usb
7173
steps:
7274
- uses: actions/checkout@v4
7375
- name: Clone esp-usb repository
@@ -85,4 +87,4 @@ jobs:
8587
with:
8688
name: usb_test_app_bin_${{ matrix.idf_ver }}
8789
- name: Run USB Test App on target
88-
run: pytest --embedded-services esp,idf --target=${{ matrix.idf_target }} -m ${{ matrix.runner_tag }} --build-dir=build_${{ matrix.idf_target }}
90+
run: pytest ${{ env.ESP_USB_PATH }} --embedded-services esp,idf --target=${{ matrix.idf_target }} -m ${{ matrix.runner_tag }} --build-dir=build_${{ matrix.idf_target }}

.github/workflows/build_and_run_idf_examples.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,16 +41,18 @@ jobs:
4141
idf-build-apps find --config-file ${CONFIG_PATH} --manifest-rootpath ${IDF_PATH}
4242
idf-build-apps build --config-file ${CONFIG_PATH} --manifest-rootpath ${IDF_PATH}
4343
- uses: actions/upload-artifact@v4
44+
env:
45+
IDF_ROOT: "/opt/esp/idf"
4446
with:
4547
# We upload only the USB Device example binaries to run them on the target
4648
name: usb_device_examples_bin_${{ matrix.idf_ver }}
4749
path: |
48-
**/build_esp*/bootloader/bootloader.bin
49-
**/build_esp*/partition_table/partition-table.bin
50-
**/build_esp*/tusb_*.bin
51-
**/build_esp*/tusb_*.elf
52-
**/build_esp*/flasher_args.json
53-
**/build_esp*/config/sdkconfig.json
50+
${{ env.IDF_ROOT }}/**/build_esp*/bootloader/bootloader.bin
51+
${{ env.IDF_ROOT }}/**/build_esp*/partition_table/partition-table.bin
52+
${{ env.IDF_ROOT }}/**/build_esp*/tusb_*.bin
53+
${{ env.IDF_ROOT }}/**/build_esp*/tusb_*.elf
54+
${{ env.IDF_ROOT }}/**/build_esp*/flasher_args.json
55+
${{ env.IDF_ROOT }}/**/build_esp*/config/sdkconfig.json
5456
if-no-files-found: error
5557
run-target:
5658
name: Run USB Device examples

0 commit comments

Comments
 (0)