Skip to content

Commit 1d4a437

Browse files
feat(ci): Add device examples run, install idf-ci
1 parent 8e5c1eb commit 1d4a437

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

.github/ci/.idf-build-examples-rules.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
# Manifest file for build_idf_examples.yml CI workflow
22

33
examples/peripherals/usb/device:
4-
enable:
5-
- if: (IDF_VERSION >= "6.0.0")
6-
reason: Device examples have been updated to use esp_tinyusb 2.x only on esp-idf latest for now, TODO IDF-14282
4+
#enable:
5+
# - if: (IDF_VERSION >= "6.0.0")
6+
# reason: Device examples have been updated to use esp_tinyusb 2.x only on esp-idf latest for now, TODO IDF-14282
77
disable:
88
- if: SOC_USB_OTG_SUPPORTED != 1
99

1010
examples/peripherals/usb/device/tusb_ncm:
11-
enable:
12-
- if: (IDF_VERSION >= "6.0.0")
13-
reason: Device examples have been updated to use esp_tinyusb 2.x only on esp-idf latest for now, TODO IDF-14282
11+
#enable:
12+
# - if: (IDF_VERSION >= "6.0.0")
13+
# reason: Device examples have been updated to use esp_tinyusb 2.x only on esp-idf latest for now, TODO IDF-14282
1414
disable:
1515
- if: SOC_USB_OTG_SUPPORTED != 1 or SOC_WIFI_SUPPORTED != 1
1616

.github/workflows/build_and_run_main_ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ name: Build and Run Test apps
88

99
on:
1010
pull_request:
11-
types: [opened, reopened, synchronize]
11+
types: [opened, reopened]
1212

1313
# Cancel previous runs of this workflow for the same PR when a new commit is pushed
1414
concurrency:

.github/workflows/build_idf_examples.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ jobs:
5151
- name: Setup IDF Examples path
5252
run: echo "EXAMPLES_PATH=${IDF_PATH}/examples/peripherals/usb" >> $GITHUB_ENV
5353
- name: Override device component
54-
# Override esp_tinyusb component only for IDF >= 6.0 temporarily
55-
if: contains('release-v6.0 latest', matrix.idf_ver)
54+
# Override esp_tinyusb component only for IDF 5.3, IDF 5.5, IDF 6.0 and latest temporarily, others have not been backported
55+
if: contains('release-v5.3 release-v5.5 release-v6.0 latest', matrix.idf_ver)
5656
run: |
5757
. ${IDF_PATH}/export.sh
5858
python .github/ci/override_managed_component.py esp_tinyusb device/esp_tinyusb ${{ env.EXAMPLES_PATH }}/device/*
@@ -161,8 +161,8 @@ jobs:
161161
include:
162162
- runner_tag: usb_host_flash_disk
163163
example: host
164-
#- runner_tag: usb_device
165-
# example: device
164+
- runner_tag: usb_device
165+
example: device
166166
runs-on: [self-hosted, linux, docker, "${{ matrix.idf_target }}", "${{ matrix.runner_tag }}"]
167167
container:
168168
image: espressif/idf:${{ matrix.idf_ver }}
@@ -182,7 +182,7 @@ jobs:
182182
run: |
183183
cd ${IDF_PATH}
184184
. ./export.sh
185-
pip install --no-cache-dir --only-binary cryptography pytest-embedded pytest-embedded-serial-esp pytest-embedded-jtag pytest-embedded-idf pyserial pyusb python-gitlab minio idf-build-apps pytest_ignore_test_results pytest-timeout netifaces
185+
pip install --no-cache-dir --only-binary cryptography pytest-embedded pytest-embedded-serial-esp pytest-embedded-idf pyserial pyusb idf-ci
186186
- uses: actions/download-artifact@v4
187187
with:
188188
name: usb_examples_bin_${{ matrix.idf_ver }}

0 commit comments

Comments
 (0)