Skip to content

Commit c13f707

Browse files
committed
ci: validate building as ESP-IDF component
1 parent c5dd39d commit c13f707

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

Diff for: .github/workflows/push.yml

+26
Original file line numberDiff line numberDiff line change
@@ -56,3 +56,29 @@ jobs:
5656
python-version: '3.x'
5757
- name: Build Sketches
5858
run: bash ./.github/scripts/on-push.sh 1 1 #equal and non-zero to trigger PIO
59+
60+
build-esp-idf-component:
61+
name: Build with ESP-IDF ${{ matrix.idf_ver }} for ${{ matrix.idf_target }}
62+
runs-on: ubuntu-20.04
63+
strategy:
64+
matrix:
65+
# The version names here correspond to the versions of espressif/idf Docker image.
66+
# See https://hub.docker.com/r/espressif/idf/tags and
67+
# https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-guides/tools/idf-docker-image.html
68+
# for details.
69+
idf_ver: ["release-v4.4"]
70+
idf_target: ["esp32", "esp32s2", "esp32c3"]
71+
container: espressif/idf:${{ matrix.idf_ver }}
72+
steps:
73+
- uses: actions/checkout@v1
74+
with:
75+
submodules: recursive
76+
path: components/arduino-esp32
77+
- name: Build
78+
env:
79+
IDF_TARGET: ${{ matrix.idf_target }}
80+
shell: bash
81+
run: |
82+
. ${IDF_PATH}/export.sh
83+
idf.py create-project --path $PWD test
84+
idf.py build

0 commit comments

Comments
 (0)