Skip to content

Commit 6bd31f3

Browse files
committed
fix(examples): Define the CI build in rules
1 parent e069681 commit 6bd31f3

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,12 @@ jobs:
5959
- name: Build with IDF-${{ matrix.idf_ver }}
6060
shell: bash
6161
run: |
62-
./ci/config_env.sh
62+
. ${GITHUB_WORKSPACE}/ci/config_env.sh
6363
. ${IDF_PATH}/export.sh
6464
python -m pip install idf-build-apps
65-
python ./ci/build_apps.py examples/mqtt -l -t linux -r default
65+
env | grep -i broker
66+
python ./ci/build_apps.py examples/mqtt -l -t linux -r 'sdkconfig.ci'
67+
cat examples/mqtt/build_linux/config/sdkconfig.h | grep -i broker
6668
timeout 5 ./examples/mqtt/build_linux/esp_mqtt_demo.elf | tee test.log || true
6769
grep 'MQTT_EVENT_DATA' test.log
6870

ci/config_env.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
set -e
55

66
# MQTT public broker URI
7-
echo "CI_MQTT_BROKER_URI=\"broker.emqx.io\"" >> "$GITHUB_ENV"
7+
export CI_MQTT_BROKER_URI="broker.emqx.io"

examples/mqtt/sdkconfig.ci

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# CONFIG_ESP_EVENT_POST_FROM_ISR is not set
2+
CONFIG_BROKER_URL="mqtt://${CI_MQTT_BROKER_URI}"

0 commit comments

Comments
 (0)