Skip to content

Commit d28232b

Browse files
igrrdavid-cermak
authored andcommitted
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.
1 parent c83b76e commit d28232b

12 files changed

+5
-4
lines changed

.github/workflows/mdns__build-target-test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
strategy:
1515
matrix:
1616
idf_ver: ["latest", "release-v5.0"]
17-
test: [ { app: example, path: "examples" }, { app: unit_test, path: "tests/unit_test" }, { app: test_app, path: "tests/test_apps" } ]
17+
test: [ { app: example, path: "examples/query_advertise" }, { app: unit_test, path: "tests/unit_test" }, { app: test_app, path: "tests/test_apps" } ]
1818
runs-on: ubuntu-20.04
1919
container: espressif/idf:${{ matrix.idf_ver }}
2020
steps:
@@ -50,7 +50,7 @@ jobs:
5050
matrix:
5151
idf_ver: ["latest"]
5252
idf_target: ["esp32"]
53-
test: [ { app: example, path: "examples" }, { app: unit_test, path: "tests/unit_test" }, { app: test_app, path: "tests/test_apps" } ]
53+
test: [ { app: example, path: "examples/query_advertise" }, { app: unit_test, path: "tests/unit_test" }, { app: test_app, path: "tests/test_apps" } ]
5454
needs: build_mdns
5555
runs-on:
5656
- self-hosted

components/mdns/examples/CMakeLists.txt renamed to components/mdns/examples/query_advertise/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
cmake_minimum_required(VERSION 3.5)
44

55
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
6-
project(mdns_test)
6+
project(query_advertise)

components/mdns/examples/README.md renamed to components/mdns/examples/query_advertise/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# mDNS example
22

3-
Shows how to use mDNS to advertise lookup services and hosts
3+
Shows how to use mDNS to advertise and query services and hosts
44

55
## Example workflow
66

components/mdns/examples/main/idf_component.yml renamed to components/mdns/examples/query_advertise/main/idf_component.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@ dependencies:
33
idf: ">=5.0"
44
espressif/mdns:
55
version: "^1.0.0"
6+
override_path: "../../../"
67
protocol_examples_common:
78
path: ${IDF_PATH}/examples/common_components/protocol_examples_common

0 commit comments

Comments
 (0)