Skip to content

Commit 306ef2e

Browse files
committed
Try add CI for esp-idf example
1 parent 392e870 commit 306ef2e

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/ci.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,3 +102,41 @@ jobs:
102102
103103
- run: PLATFORMIO_SRC_DIR=examples/Client PIO_BOARD=${{ matrix.board }} pio run -e ${{ matrix.env }}
104104
- run: PLATFORMIO_SRC_DIR=examples/FetchWebsite PIO_BOARD=${{ matrix.board }} pio run -e ${{ matrix.env }}
105+
106+
esp-idf:
107+
name: Build with ESP-IDF ${{ matrix.idf_ver }} for ${{ matrix.idf_target }}
108+
runs-on: ubuntu-latest
109+
strategy:
110+
fail-fast: false
111+
matrix:
112+
# The version names here correspond to the versions of espressif/idf Docker image.
113+
# See https://hub.docker.com/r/espressif/idf/tags and
114+
# https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-guides/tools/idf-docker-image.html
115+
# for details.
116+
idf_ver: ["release-v5.4"]
117+
idf_target:
118+
[
119+
"esp32",
120+
"esp32s2",
121+
"esp32s3",
122+
"esp32c2",
123+
"esp32c3",
124+
"esp32c6",
125+
"esp32h2",
126+
"esp32p4"
127+
]
128+
container: espressif/idf:${{ matrix.idf_ver }}
129+
steps:
130+
- name: Check out arduino-esp32 as a component
131+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
132+
with:
133+
submodules: recursive
134+
path: components/arduino-esp32
135+
136+
- name: Build
137+
env:
138+
IDF_TARGET: ${{ matrix.idf_target }}
139+
shell: bash
140+
run: |
141+
. ${IDF_PATH}/export.sh
142+
idf.py -C idf_component_examples/client -DEXTRA_COMPONENT_DIRS=$PWD/components build

0 commit comments

Comments
 (0)