fix(mdns): move the example into a subdirectory

By default, component manager expects that the examples are located
under <component>/examples/<name>. Move mdns example so that it is
found.
This commit is contained in:
Ivan Grokhotkov
2023-09-21 16:30:18 +02:00
committed by David Cermak
parent c83b76ea8f
commit d28232b9f8
12 changed files with 5 additions and 4 deletions

View File

@ -14,7 +14,7 @@ jobs:
strategy:
matrix:
idf_ver: ["latest", "release-v5.0"]
test: [ { app: example, path: "examples" }, { app: unit_test, path: "tests/unit_test" }, { app: test_app, path: "tests/test_apps" } ]
test: [ { app: example, path: "examples/query_advertise" }, { app: unit_test, path: "tests/unit_test" }, { app: test_app, path: "tests/test_apps" } ]
runs-on: ubuntu-20.04
container: espressif/idf:${{ matrix.idf_ver }}
steps:
@ -50,7 +50,7 @@ jobs:
matrix:
idf_ver: ["latest"]
idf_target: ["esp32"]
test: [ { app: example, path: "examples" }, { app: unit_test, path: "tests/unit_test" }, { app: test_app, path: "tests/test_apps" } ]
test: [ { app: example, path: "examples/query_advertise" }, { app: unit_test, path: "tests/unit_test" }, { app: test_app, path: "tests/test_apps" } ]
needs: build_mdns
runs-on:
- self-hosted

View File

@ -3,4 +3,4 @@
cmake_minimum_required(VERSION 3.5)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(mdns_test)
project(query_advertise)

View File

@ -1,6 +1,6 @@
# mDNS example
Shows how to use mDNS to advertise lookup services and hosts
Shows how to use mDNS to advertise and query services and hosts
## Example workflow

View File

@ -3,5 +3,6 @@ dependencies:
idf: ">=5.0"
espressif/mdns:
version: "^1.0.0"
override_path: "../../../"
protocol_examples_common:
path: ${IDF_PATH}/examples/common_components/protocol_examples_common