Skip to content

Commit

Permalink
ci(workflow): Changed examples to the strategy parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
roma-jam committed Jan 21, 2025
1 parent 58b384c commit 1c1f52a
Showing 1 changed file with 18 additions and 19 deletions.
37 changes: 18 additions & 19 deletions .github/workflows/build_idf_examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,33 +12,32 @@ jobs:
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"
example:
- { name: "USB Device", path: "/examples/peripherals/usb/device", manifest_path: "examples/peripherals"}
- { name: "Network", path: "/examples/network", manifest_path: "examples/network" }
exclude:
# Exclude esp32p4 for releases before IDF 5.3 for all runner tags (esp32p4 support starts in IDF 5.3)
- idf_ver: "release-v5.0"
target: "esp32p4"
- idf_ver: "release-v5.1"
target: "esp32p4"
- idf_ver: "release-v5.2"
target: "esp32p4"
# Exclude esp32p4 for Network examples
- target: "esp32p4"
example: { name: "Network", path: "/examples/network/", manifest_path: "examples/network" }
runs-on: ubuntu-20.04
container: espressif/idf:${{ matrix.idf_ver }}
steps:
- uses: actions/checkout@v4
with:
submodules: 'true'
- name: USB Device ${{ matrix.target }}
- name: ${{ matrix.example.name }} ${{ 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_*
python .github/ci/override_managed_component.py esp_tinyusb device/esp_tinyusb ${IDF_PATH}/${{ matrix.example.path }}
cd ${IDF_PATH}
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
idf-build-apps find --path ${{ matrix.example.path }} --recursive --target ${{ matrix.target }} --manifest-file ${{ matrix.example.manifest_path }}/.build-test-rules.yml --build-dir build_@t_@w --work-dir @f_@t_@w
idf-build-apps build --path ${{ matrix.example.path }} --recursive --target ${{ matrix.target }} --manifest-file ${{ matrix.example.manifest_path }}/.build-test-rules.yml --build-dir build_@t_@w --work-dir @f_@t_@w

0 comments on commit 1c1f52a

Please sign in to comment.