Skip to content

Commit 50c113e

Browse files
committed
feat(wifi_remote): Add build test for current IDF examples
Building also standard IDF examples that use esp-wifi-remote (building for wifiless targets ESP32P4, ESP32H2 and one wifi target ESP32s3)
1 parent bde9720 commit 50c113e

File tree

4 files changed

+48
-2
lines changed

4 files changed

+48
-2
lines changed

.github/workflows/wifi_remote__build.yml

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
run: |
5050
. ${IDF_PATH}/export.sh
5151
pip install idf-component-manager idf-build-apps --upgrade
52-
python ./scripts/generate_slave_configs.py ./components/esp_wifi_remote/${{matrix.test.path}}
52+
python ./components/esp_wifi_remote/scripts/generate_slave_configs.py ./components/esp_wifi_remote/${{matrix.test.path}}
5353
python ./ci/build_apps.py ./components/esp_wifi_remote/${{matrix.test.path}} -vv --preserve-all
5454
5555
build_wifi_remote_example:
@@ -77,3 +77,36 @@ jobs:
7777
. ${IDF_PATH}/export.sh
7878
pip install idf-component-manager idf-build-apps --upgrade
7979
python ./ci/build_apps.py ./components/esp_wifi_remote/${{matrix.example.path}} -vv --preserve-all
80+
81+
build_idf_examples_with_wifi_remote:
82+
if: contains(github.event.pull_request.labels.*.name, 'wifi_remote') || github.event_name == 'push'
83+
name: Build IDF examples with WiFi Remote
84+
strategy:
85+
matrix:
86+
idf_ver: ["latest", "release-v5.3"]
87+
idf_target: ["esp32p4", "esp32h2", "esp32s3"]
88+
test: [ { app: idf_mqtt_example, path: "examples/protocols/mqtt/tcp" }]
89+
runs-on: ubuntu-20.04
90+
container: espressif/idf:${{ matrix.idf_ver }}
91+
steps:
92+
- name: Checkout esp-protocols
93+
uses: actions/checkout@v3
94+
- name: ccache
95+
uses: hendrikmuhs/[email protected]
96+
with:
97+
key: ${{ matrix.idf_ver }}
98+
- name: Build ${{ matrix.test.app }} with IDF-${{ matrix.idf_ver }} for ${{ matrix.idf_target }}
99+
shell: bash
100+
run: |
101+
. ${IDF_PATH}/export.sh
102+
pip install idf-component-manager idf-build-apps --upgrade
103+
export OVERRIDE_PATH=`pwd`/components/esp_wifi_remote
104+
echo ${OVERRIDE_PATH}
105+
sed -i '/espressif\/esp_wifi_remote:/a \ \ \ \ override_path: "${OVERRIDE_PATH}"' ${IDF_PATH}/${{matrix.test.path}}/main/idf_component.yml
106+
cat ${IDF_PATH}/${{matrix.test.path}}/main/idf_component.yml
107+
export PEDANTIC_FLAGS="-DIDF_CI_BUILD -Werror -Werror=deprecated-declarations -Werror=unused-variable -Werror=unused-but-set-variable -Werror=unused-function"
108+
export EXTRA_CFLAGS="${PEDANTIC_FLAGS} -Wstrict-prototypes"
109+
export EXTRA_CXXFLAGS="${PEDANTIC_FLAGS}"
110+
cd ${IDF_PATH}/${{matrix.test.path}}
111+
idf-build-apps find --config sdkconfig.ci* -vv --target ${{ matrix.idf_target }}
112+
idf-build-apps build --config sdkconfig.ci* -vv --target ${{ matrix.idf_target }}

components/esp_wifi_remote/idf_v5.3/wifi_apps/roaming_app/src/Kconfig.roaming

Whitespace-only changes.

components/esp_wifi_remote/idf_v5.4/Kconfig.soc_wifi_caps.in

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,10 @@ if SLAVE_IDF_TARGET_ESP32C6
222222
bool
223223
default y
224224

225+
config SLAVE_SOC_WIFI_MAC_VERSION_NUM
226+
int
227+
default 2
228+
225229
endif # ESP32C6
226230

227231
if SLAVE_IDF_TARGET_ESP32C5
@@ -266,6 +270,10 @@ if SLAVE_IDF_TARGET_ESP32C5
266270
bool
267271
default y
268272

273+
config SLAVE_SOC_WIFI_MAC_VERSION_NUM
274+
int
275+
default 3
276+
269277
endif # ESP32C5
270278

271279
if SLAVE_IDF_TARGET_ESP32C61
@@ -306,4 +314,8 @@ if SLAVE_IDF_TARGET_ESP32C61
306314
bool
307315
default y
308316

317+
config SLAVE_SOC_WIFI_MAC_VERSION_NUM
318+
int
319+
default 3
320+
309321
endif # ESP32C61

components/esp_wifi_remote/scripts/generate_slave_configs.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
output_directory = sys.argv[1]
1111

1212
# Input Kconfig file
13-
kconfig_file = f"idf_v{os.getenv('ESP_IDF_VERSION')}/Kconfig.slave_select.in"
13+
component_path = os.path.normpath(os.path.join(os.path.realpath(__file__),'..', '..'))
14+
kconfig_file = os.path.join(component_path, f"idf_v{os.getenv('ESP_IDF_VERSION')}", 'Kconfig.slave_select.in')
1415

1516
# Output file prefix
1617
output_prefix = 'sdkconfig.ci.'

0 commit comments

Comments
 (0)