refactor(usb_host): Removed parent_dev_hdl and parent_port_num from Enum Driver (part1/4) #1064
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow builds esp-idf examples: | |
# | |
# - usb device examples: with overridden esp_tinyusb from esp-usb/device/esp_tinyusb | |
# - All (service + maintenance IDF releases) | |
# | |
# - usb host examples: with overridden usb component from esp-usb/host/usb | |
# - Only service IDF releases | |
name: Build ESP-IDF USB examples | |
on: | |
pull_request: | |
types: [opened, reopened, synchronize] | |
jobs: | |
build: | |
strategy: | |
fail-fast: true | |
matrix: | |
idf_ver: | |
[ | |
"release-v5.1", | |
"release-v5.2", | |
"release-v5.3", | |
"release-v5.4", | |
"release-v5.5", | |
"latest", | |
] | |
runs-on: ubuntu-latest | |
container: espressif/idf:${{ matrix.idf_ver }} | |
env: | |
CONFIG_PATH: ${{ github.workspace }}/.github/ci/.idf_build_examples_config.toml | |
MANIFEST_PATH: ${{ github.workspace }}/.github/ci/.idf-build-examples-rules.yml | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: "true" | |
- name: Install Python deps | |
shell: bash | |
run: | | |
. ${IDF_PATH}/export.sh | |
pip install idf-component-manager>=2.1.2 idf-build-apps==2.4.3 pyyaml --upgrade | |
- name: Build ESP-IDF ${{ matrix.idf_ver }} USB examples | |
shell: bash | |
run: | | |
. ${IDF_PATH}/export.sh | |
# TODO: Uncomment the below line to run esp-idf USB Device examples in CI. See issue IDF-13618 for tracking. | |
#python .github/ci/override_managed_component.py esp_tinyusb device/esp_tinyusb ${IDF_PATH}/examples/peripherals/usb/device/* | |
python .github/ci/override_managed_component.py usb host/usb ${IDF_PATH}/examples/peripherals/usb/host/* | |
cd ${IDF_PATH} | |
idf-build-apps find --config-file ${CONFIG_PATH} --manifest-file ${MANIFEST_PATH} | |
idf-build-apps build --config-file ${CONFIG_PATH} --manifest-file ${MANIFEST_PATH} |