Skip to content

Commit d6347a9

Browse files
authored
Merge pull request #660 from david-cermak/feat/wifi_remote_flat
[wifi_remote]: Make flat version structure across IDF releases
2 parents 8475adf + c454ec0 commit d6347a9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+4608
-829
lines changed

.github/workflows/wifi_remote__build.yml

Lines changed: 38 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
name: Check API compatibility of WiFi Remote
1414
strategy:
1515
matrix:
16-
idf_ver: ["latest"]
16+
idf_ver: ["latest", "release-v5.3"]
1717
runs-on: ubuntu-20.04
1818
container: espressif/idf:${{ matrix.idf_ver }}
1919
steps:
@@ -24,15 +24,16 @@ jobs:
2424
run: |
2525
. ${IDF_PATH}/export.sh
2626
pip install idf-component-manager idf-build-apps --upgrade
27+
cp -r ./components/esp_wifi_remote ./components/esp_wifi_remote_base
2728
cd ./components/esp_wifi_remote/scripts
28-
python generate_and_check.py
29+
python generate_and_check.py --base-dir ../../esp_wifi_remote_base
2930
3031
build_wifi_remote:
3132
if: contains(github.event.pull_request.labels.*.name, 'wifi_remote') || github.event_name == 'push'
3233
name: Build WiFi Remote Test
3334
strategy:
3435
matrix:
35-
idf_ver: ["latest"]
36+
idf_ver: ["latest", "release-v5.3"]
3637
test: [ { app: smoke_test, path: "test/smoke_test" }]
3738
runs-on: ubuntu-20.04
3839
container: espressif/idf:${{ matrix.idf_ver }}
@@ -48,6 +49,7 @@ jobs:
4849
run: |
4950
. ${IDF_PATH}/export.sh
5051
pip install idf-component-manager idf-build-apps --upgrade
52+
python ./components/esp_wifi_remote/scripts/generate_slave_configs.py ./components/esp_wifi_remote/${{matrix.test.path}}
5153
python ./ci/build_apps.py ./components/esp_wifi_remote/${{matrix.test.path}} -vv --preserve-all
5254
5355
build_wifi_remote_example:
@@ -75,3 +77,36 @@ jobs:
7577
. ${IDF_PATH}/export.sh
7678
pip install idf-component-manager idf-build-apps --upgrade
7779
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/ccache-action@v1.2
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/CMakeLists.txt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
1+
set(IDF_VER_DIR "idf_v${IDF_VERSION_MAJOR}.${IDF_VERSION_MINOR}")
2+
13
if(NOT CONFIG_ESP_WIFI_ENABLED)
2-
set(src_wifi_is_remote esp_wifi_remote.c esp_wifi_with_remote.c esp_wifi_remote_net.c)
4+
set(src_wifi_is_remote esp_wifi_remote.c ${IDF_VER_DIR}/esp_wifi_with_remote.c esp_wifi_remote_net.c)
35
endif()
46

57
if(CONFIG_ESP_WIFI_REMOTE_LIBRARY_EPPP)
68
set(src_wifi_remote_eppp eppp/wifi_remote_rpc_client.cpp eppp/wifi_remote_rpc_server.cpp eppp/eppp_init.c)
79
else()
8-
set(src_wifi_remote_weak esp_wifi_remote_weak.c)
10+
set(src_wifi_remote_weak ${IDF_VER_DIR}/esp_wifi_remote_weak.c)
911
endif()
1012

11-
idf_component_register(INCLUDE_DIRS include
13+
idf_component_register(INCLUDE_DIRS include ${IDF_VER_DIR}/include
1214
SRCS ${src_wifi_remote_weak}
1315
${src_wifi_remote_eppp}
1416
${src_wifi_is_remote}

0 commit comments

Comments
 (0)