Skip to content

Commit d2bb1e0

Browse files
authored
Merge pull request #4 from Forkteam/feature/idf_component_ci_and_ver_check
Feature/idf component ci and ver check
2 parents 9a48fea + 300777b commit d2bb1e0

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/push.yml

+27
Original file line numberDiff line numberDiff line change
@@ -78,3 +78,30 @@ jobs:
7878
python-version: '3.x'
7979
- name: Build Sketches
8080
run: bash ./.github/scripts/on-push.sh 1 1 #equal and non-zero to trigger PIO
81+
82+
build-esp-idf-component:
83+
name: Build with ESP-IDF ${{ matrix.idf_ver }} for ${{ matrix.idf_target }}
84+
runs-on: ubuntu-20.04
85+
strategy:
86+
matrix:
87+
# The version names here correspond to the versions of espressif/idf Docker image.
88+
# See https://hub.docker.com/r/espressif/idf/tags and
89+
# https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-guides/tools/idf-docker-image.html
90+
# for details.
91+
idf_ver: ["release-v4.4"]
92+
idf_target: ["esp32", "esp32s2", "esp32c3"]
93+
container: espressif/idf:${{ matrix.idf_ver }}
94+
steps:
95+
- name: Check out arduino-esp32 as a component
96+
uses: actions/checkout@v2
97+
with:
98+
submodules: recursive
99+
path: components/arduino-esp32
100+
- name: Build
101+
env:
102+
IDF_TARGET: ${{ matrix.idf_target }}
103+
shell: bash
104+
run: |
105+
. ${IDF_PATH}/export.sh
106+
idf.py create-project test
107+
idf.py -C test -DEXTRA_COMPONENT_DIRS=$PWD/components build

0 commit comments

Comments
 (0)