Skip to content

Commit 307bf69

Browse files
committed
fix(examples): Test with vanilla idf-build-apps
1 parent 1285b7d commit 307bf69

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

.github/workflows/examples_build-host-test.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,23 +52,30 @@ jobs:
5252
matrix:
5353
idf_ver: ["latest"]
5454
runs-on: ubuntu-22.04
55+
environment: test
5556
container: espressif/idf:${{ matrix.idf_ver }}
5657
steps:
5758
- name: Checkout esp-protocols
5859
uses: actions/checkout@v4
5960
- name: Build with IDF-${{ matrix.idf_ver }}
60-
env:
61-
MQTT_BROKER_URI: ${{ secrets.MQTT_BROKER_URI }}
6261
shell: bash
6362
run: |
6463
. ${IDF_PATH}/export.sh
6564
cat examples/mqtt/sdkconfig.defaults.linux
65+
echo "MQTT_BROKER_URI=${MQTT_BROKER_URI1}"
6666
echo "MQTT_BROKER_URI=${MQTT_BROKER_URI}"
67+
echo "MQTT_BROKER_URI=$MQTT_BROKER_URI"
68+
echo "MQTT_BROKER_URI=${{ env.MQTT_BROKER_URI }}"
69+
echo "MQTT_BROKER_URI=${{ vars.MQTT_BROKER_URI }}"
70+
echo "Environment variable TEST_VAR: ${{ vars.TEST_VAR }}"
6771
./ci/replace.sh examples/mqtt/sdkconfig.defaults.linux
6872
cat examples/mqtt/sdkconfig.defaults.linux
6973
python -m pip install idf-build-apps
70-
python ./ci/build_apps.py examples/mqtt -l -t linux
71-
timeout 25 ./examples/mqtt/build_linux_default/esp_mqtt_demo.elf | tee test.log || true
74+
# python ./ci/build_apps.py examples/mqtt -l -t linux
75+
cd examples/mqtt
76+
idf-build-apps build -vv -t linux --enable-preview-targets
77+
cat build/config/sdkconfig.h | grep -i broker
78+
timeout 25 ./examples/mqtt/build/esp_mqtt_demo.elf | tee test.log || true
7279
grep 'MQTT_EVENT_DATA' test.log
7380
7481
run_on_target:

0 commit comments

Comments
 (0)