Skip to content

Commit

Permalink
ci(workflow): Added build network examples
Browse files Browse the repository at this point in the history
  • Loading branch information
roma-jam committed Jan 21, 2025
1 parent 5719445 commit 58b384c
Showing 1 changed file with 20 additions and 4 deletions.
24 changes: 20 additions & 4 deletions .github/workflows/build_idf_examples.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build ESP-IDF USB examples
name: Build ESP-IDF Examples

on:
schedule:
Expand All @@ -11,18 +11,34 @@ jobs:
strategy:
matrix:
idf_ver: ["release-v5.0", "release-v5.1", "release-v5.2", "release-v5.3", "release-v5.4", "latest"]
target: ["esp32s2", "esp32s3", "esp32p4"]
include:
- name: USB Examples
path: /examples/peripherals/usb/device/
- name: Network
path: /examples/network/
exclude_param: "esp32p4"
runs-on: ubuntu-20.04
container: espressif/idf:${{ matrix.idf_ver }}
steps:
- uses: actions/checkout@v4
with:
submodules: 'true'
- name: Build ESP-IDF USB examples
- name: USB Device ${{ matrix.target }}
shell: bash
run: |
. ${IDF_PATH}/export.sh
pip install idf-component-manager==1.5.2 idf-build-apps==2.4.3 --upgrade
python .github/ci/override_managed_component.py esp_tinyusb device/esp_tinyusb ${IDF_PATH}/examples/peripherals/usb/device/tusb_*
cd ${IDF_PATH}
idf-build-apps find --path examples/peripherals/usb/device/ --recursive --target all --manifest-file examples/peripherals/.build-test-rules.yml --build-dir build_@t_@w --work-dir @f_@t_@w
idf-build-apps build --path examples/peripherals/usb/device/ --recursive --target all --manifest-file examples/peripherals/.build-test-rules.yml --build-dir build_@t_@w --work-dir @f_@t_@w
idf-build-apps find --path examples/peripherals/usb/device/ --recursive --target ${{ matrix.target }} --manifest-file examples/peripherals/.build-test-rules.yml --build-dir build_@t_@w --work-dir @f_@t_@w
idf-build-apps build --path examples/peripherals/usb/device/ --recursive --target ${{ matrix.target }} --manifest-file examples/peripherals/.build-test-rules.yml --build-dir build_@t_@w --work-dir @f_@t_@w
- name: Network ${{ matrix.target }}
shell: bash
run: |
. ${IDF_PATH}/export.sh
pip install idf-component-manager==1.5.2 idf-build-apps==2.4.3 --upgrade
python .github/ci/override_managed_component.py esp_tinyusb device/esp_tinyusb ${IDF_PATH}/examples/network/*
cd ${IDF_PATH}
idf-build-apps find --path examples/network/ --recursive --target ${{ matrix.target }} --manifest-file examples/network/.build-test-rules.yml --build-dir build_@t_@w --work-dir @f_@t_@w
idf-build-apps build --path examples/network/ --recursive --target ${{ matrix.target }} --manifest-file examples/network/.build-test-rules.yml --build-dir build_@t_@w --work-dir @f_@t_@w

0 comments on commit 58b384c

Please sign in to comment.