fix(mdns): Fix compile error when MDNS_PREDEF_NETIF_ETH is defined, but ETH_ENABLED is not (IDFGH-11868) #1063
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "examples: build/host-tests" | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
types: [opened, synchronize, reopened, labeled] | |
jobs: | |
build_all_examples: | |
if: contains(github.event.pull_request.labels.*.name, 'examples') || github.event_name == 'push' | |
name: Build examples | |
strategy: | |
matrix: | |
idf_ver: ["latest", "release-v5.1"] | |
runs-on: ubuntu-20.04 | |
container: espressif/idf:${{ matrix.idf_ver }} | |
steps: | |
- name: Checkout esp-protocols | |
uses: actions/checkout@v3 | |
- name: Build with IDF-${{ matrix.idf_ver }} | |
shell: bash | |
run: | | |
. ${IDF_PATH}/export.sh | |
python -m pip install idf-build-apps | |
# Build default configs for all targets | |
python ./ci/build_apps.py examples -m examples/.build-test-rules.yml -d -c | |
build_and_run_on_host: | |
if: contains(github.event.pull_request.labels.*.name, 'examples') || github.event_name == 'push' | |
name: Build and run examples on linux | |
strategy: | |
matrix: | |
idf_ver: ["latest"] | |
runs-on: ubuntu-20.04 | |
container: espressif/idf:${{ matrix.idf_ver }} | |
steps: | |
- name: Checkout esp-protocols | |
uses: actions/checkout@v3 | |
- name: Build with IDF-${{ matrix.idf_ver }} | |
shell: bash | |
run: | | |
. ${IDF_PATH}/export.sh | |
python -m pip install idf-build-apps | |
python ./ci/build_apps.py examples/mqtt -l -t linux | |
timeout 5 ./examples/mqtt/build_linux_default/esp_mqtt_demo.elf | tee test.log || true | |
grep 'MQTT_EVENT_DATA' test.log |