From 1be3be09a00713a40792c9e1c4b03ef89edfae82 Mon Sep 17 00:00:00 2001 From: David Cermak Date: Tue, 24 Sep 2024 15:52:01 +0200 Subject: [PATCH] fix(wifi_remote): Add IDF compatible build test with wifi-remote --- .github/workflows/wifi_remote__build.yml | 28 ++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/.github/workflows/wifi_remote__build.yml b/.github/workflows/wifi_remote__build.yml index 85654bd814..ae36dbe28c 100644 --- a/.github/workflows/wifi_remote__build.yml +++ b/.github/workflows/wifi_remote__build.yml @@ -77,3 +77,31 @@ jobs: . ${IDF_PATH}/export.sh pip install idf-component-manager idf-build-apps --upgrade python ./ci/build_apps.py ./components/esp_wifi_remote/${{matrix.example.path}} -vv --preserve-all + + build_idf_examples_with_wifi_remote: + if: contains(github.event.pull_request.labels.*.name, 'wifi_remote') || github.event_name == 'push' + name: Build IDF examples with WiFi Remote + strategy: + matrix: + idf_ver: ["latest", "release-v5.3"] + test: [ { app: idf_mqtt_example, path: "examples/protocols/mqtt/tcp" }] + runs-on: ubuntu-20.04 + container: espressif/idf:${{ matrix.idf_ver }} + steps: + - name: Checkout esp-protocols + uses: actions/checkout@v3 + - name: ccache + uses: hendrikmuhs/ccache-action@v1.2 + with: + key: ${{ matrix.idf_ver }} + - name: Build ${{ matrix.test.app }} with IDF-${{ matrix.idf_ver }} + shell: bash + run: | + . ${IDF_PATH}/export.sh + pip install idf-component-manager idf-build-apps --upgrade + export OVERRIDE_PATH=`pwd`/components/esp_wifi_remote + echo ${OVERRIDE_PATH} + sed -i '/espressif\/esp_wifi_remote:/a \ \ \ \ override_path: "${OVERRIDE_PATH}"' ${IDF_PATH}/${{matrix.test.path}}/main/idf_component.yml + cat ${{matrix.test.path}}/main/idf_component.yml + cd ${IDF_PATH} + python ./tools/ci/ci_build_apps.py ${{matrix.test.path}} -vv