Skip to content

Commit b2c8368

Browse files
committed
feature(CI): Added esp_iot_solutions example build verification for latest idf
1 parent 681b920 commit b2c8368

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: ESP IoT Solution - USB Device Examples
2+
3+
on:
4+
schedule:
5+
- cron: '0 0 * * SAT' # Saturday midnight
6+
pull_request:
7+
types: [opened, reopened, synchronize]
8+
9+
jobs:
10+
build:
11+
strategy:
12+
matrix:
13+
# idf_ver: ["release-v5.0", "release-v5.1", "release-v5.2", "release-v5.3", "release-v5.4", "latest"]
14+
idf_ver: ["latest"]
15+
name: ["usb_uart_bridge"]
16+
runs-on: ubuntu-20.04
17+
container: espressif/idf:${{ matrix.idf_ver }}
18+
env:
19+
ESP_IOT_PATH: esp-iot-solution
20+
MANIFEST_PATH: esp-iot-solution/examples/.build-rules.yml
21+
EXAMPLE_PATH: esp-iot-solution/examples/usb/device/${{ matrix.name }}
22+
steps:
23+
- uses: actions/checkout@v4
24+
with:
25+
submodules: 'true'
26+
- name: Clone esp-iot-solution repository
27+
run: |
28+
git clone https://github.com/espressif/esp-iot-solution.git
29+
- name: Build
30+
shell: bash
31+
run: |
32+
. ${IDF_PATH}/export.sh
33+
pip install idf-component-manager==1.5.2 idf-build-apps==2.4.3 --upgrade
34+
python .github/ci/override_managed_component.py tinyusb . ${{ env.EXAMPLE_PATH }}/
35+
idf-build-apps find --paths ${{ env.EXAMPLE_PATH }} --target all --manifest-file ${{ env.MANIFEST_PATH }} --manifest-rootpath ${{ env.ESP_IOT_PATH }}
36+
idf-build-apps build --paths ${{ env.EXAMPLE_PATH }} --target all --manifest-file ${{ env.MANIFEST_PATH }} --manifest-rootpath ${{ env.ESP_IOT_PATH }}

0 commit comments

Comments
 (0)