mirror of
https://github.com/0xFEEDC0DE64/arduino-esp32.git
synced 2025-07-30 10:47:15 +02:00
Add CI job which tries to build arduino-esp32 as a component (#5842)
Co-authored-by: Me No Dev <me-no-dev@users.noreply.github.com>
This commit is contained in:
27
.github/workflows/push.yml
vendored
27
.github/workflows/push.yml
vendored
@ -78,3 +78,30 @@ jobs:
|
|||||||
python-version: '3.x'
|
python-version: '3.x'
|
||||||
- name: Build Sketches
|
- name: Build Sketches
|
||||||
run: bash ./.github/scripts/on-push.sh 1 1 #equal and non-zero to trigger PIO
|
run: bash ./.github/scripts/on-push.sh 1 1 #equal and non-zero to trigger PIO
|
||||||
|
|
||||||
|
build-esp-idf-component:
|
||||||
|
name: Build with ESP-IDF ${{ matrix.idf_ver }} for ${{ matrix.idf_target }}
|
||||||
|
runs-on: ubuntu-20.04
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
# The version names here correspond to the versions of espressif/idf Docker image.
|
||||||
|
# See https://hub.docker.com/r/espressif/idf/tags and
|
||||||
|
# https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-guides/tools/idf-docker-image.html
|
||||||
|
# for details.
|
||||||
|
idf_ver: ["release-v4.4"]
|
||||||
|
idf_target: ["esp32", "esp32s2", "esp32s3", "esp32c3"]
|
||||||
|
container: espressif/idf:${{ matrix.idf_ver }}
|
||||||
|
steps:
|
||||||
|
- name: Check out arduino-esp32 as a component
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
submodules: recursive
|
||||||
|
path: components/arduino-esp32
|
||||||
|
- name: Build
|
||||||
|
env:
|
||||||
|
IDF_TARGET: ${{ matrix.idf_target }}
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
. ${IDF_PATH}/export.sh
|
||||||
|
idf.py create-project test
|
||||||
|
idf.py -C test -DEXTRA_COMPONENT_DIRS=$PWD/components build
|
||||||
|
Reference in New Issue
Block a user