Unverified Commit 7e0f892f authored by Me No Dev's avatar Me No Dev Committed by GitHub

Fix standalone component build and enable CI check for it (#8743)

Fixes: https://github.com/espressif/arduino-esp32/issues/8740
parent 1f1a9ae4
......@@ -82,30 +82,30 @@ jobs:
- name: Build Sketches
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@v3
# 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
# echo CONFIG_FREERTOS_HZ=1000 > test/sdkconfig.defaults
# idf.py -C test -DEXTRA_COMPONENT_DIRS=$PWD/components build
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-v5.1"]
idf_target: ["esp32", "esp32s2", "esp32s3", "esp32c3", "esp32c6", "esp32h2"]
container: espressif/idf:${{ matrix.idf_ver }}
steps:
- name: Check out arduino-esp32 as a component
uses: actions/checkout@v3
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
echo CONFIG_FREERTOS_HZ=1000 > test/sdkconfig.defaults
idf.py -C test -DEXTRA_COMPONENT_DIRS=$PWD/components build
......@@ -209,7 +209,7 @@ set(includedirs
set(srcs ${CORE_SRCS} ${LIBRARY_SRCS} ${BLE_SRCS})
set(priv_includes cores/esp32/libb64)
set(requires spi_flash mbedtls mdns wifi_provisioning wpa_supplicant esp_adc esp_eth http_parser)
set(requires spi_flash mbedtls wifi_provisioning wpa_supplicant esp_adc esp_eth http_parser)
set(priv_requires fatfs nvs_flash app_update spiffs bootloader_support bt esp_hid)
idf_component_register(INCLUDE_DIRS ${includedirs} PRIV_INCLUDE_DIRS ${priv_includes} SRCS ${srcs} REQUIRES ${requires} PRIV_REQUIRES ${priv_requires})
......
......@@ -23,3 +23,7 @@ files:
- "Kconfig.projbuild"
exclude:
- "**/*"
dependencies:
idf: ">=5.1"
mdns: "^1.1.0"
chmorgan/esp-libhelix-mp3: "1.0.3"
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment