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: ...@@ -82,30 +82,30 @@ jobs:
- 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: build-esp-idf-component:
# name: Build with ESP-IDF ${{ matrix.idf_ver }} for ${{ matrix.idf_target }} name: Build with ESP-IDF ${{ matrix.idf_ver }} for ${{ matrix.idf_target }}
# runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
# strategy: strategy:
# matrix: matrix:
# # The version names here correspond to the versions of espressif/idf Docker image. # The version names here correspond to the versions of espressif/idf Docker image.
# # See https://hub.docker.com/r/espressif/idf/tags and # 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 # https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-guides/tools/idf-docker-image.html
# # for details. # for details.
# idf_ver: ["release-v4.4"] idf_ver: ["release-v5.1"]
# idf_target: ["esp32", "esp32s2", "esp32s3", "esp32c3"] idf_target: ["esp32", "esp32s2", "esp32s3", "esp32c3", "esp32c6", "esp32h2"]
# container: espressif/idf:${{ matrix.idf_ver }} container: espressif/idf:${{ matrix.idf_ver }}
# steps: steps:
# - name: Check out arduino-esp32 as a component - name: Check out arduino-esp32 as a component
# uses: actions/checkout@v3 uses: actions/checkout@v3
# with: with:
# submodules: recursive submodules: recursive
# path: components/arduino-esp32 path: components/arduino-esp32
# - name: Build - name: Build
# env: env:
# IDF_TARGET: ${{ matrix.idf_target }} IDF_TARGET: ${{ matrix.idf_target }}
# shell: bash shell: bash
# run: | run: |
# . ${IDF_PATH}/export.sh . ${IDF_PATH}/export.sh
# idf.py create-project test idf.py create-project test
# echo CONFIG_FREERTOS_HZ=1000 > test/sdkconfig.defaults echo CONFIG_FREERTOS_HZ=1000 > test/sdkconfig.defaults
# idf.py -C test -DEXTRA_COMPONENT_DIRS=$PWD/components build idf.py -C test -DEXTRA_COMPONENT_DIRS=$PWD/components build
...@@ -209,7 +209,7 @@ set(includedirs ...@@ -209,7 +209,7 @@ set(includedirs
set(srcs ${CORE_SRCS} ${LIBRARY_SRCS} ${BLE_SRCS}) set(srcs ${CORE_SRCS} ${LIBRARY_SRCS} ${BLE_SRCS})
set(priv_includes cores/esp32/libb64) 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) 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}) idf_component_register(INCLUDE_DIRS ${includedirs} PRIV_INCLUDE_DIRS ${priv_includes} SRCS ${srcs} REQUIRES ${requires} PRIV_REQUIRES ${priv_requires})
......
...@@ -23,3 +23,7 @@ files: ...@@ -23,3 +23,7 @@ files:
- "Kconfig.projbuild" - "Kconfig.projbuild"
exclude: 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