@@ -13,11 +13,16 @@ jobs:
13
13
name : Mosquitto build
14
14
strategy :
15
15
matrix :
16
- idf_ver : ["latest", "release-v5.5", "release-v5.4", "release-v5.3", "release-v5.2"]
16
+ idf_ver : ["latest", "release-v5.5", "release-v5.4", "release-v5.3", "release-v5.2", "release-v5.1"]
17
+ example : ["broker", "serverless_mqtt"]
18
+ exclude :
19
+ - idf_ver : " release-v5.1"
20
+ example : " serverless_mqtt" # serverless_mqtt is not supported due to esp-peer
21
+
17
22
runs-on : ubuntu-22.04
18
23
container : espressif/idf:${{ matrix.idf_ver }}
19
24
env :
20
- TEST_DIR : components/mosquitto/examples
25
+ TEST_DIR : components/mosquitto/examples/${{ matrix.example }}
21
26
TARGET_TEST : broker
22
27
TARGET_TEST_DIR : build_esp32_default
23
28
steps :
@@ -31,14 +36,17 @@ jobs:
31
36
. ${IDF_PATH}/export.sh
32
37
pip install idf-component-manager idf-build-apps --upgrade
33
38
python ci/build_apps.py -c ${TEST_DIR} -m components/mosquitto/.build-test-rules.yml
34
- # upload only the target test artifacts
35
- cd ${TEST_DIR}/${TARGET_TEST}
36
- ${GITHUB_WORKSPACE}/ci/clean_build_artifacts.sh `pwd`/${TARGET_TEST_DIR}
37
- zip -qur artifacts.zip ${TARGET_TEST_DIR}
39
+ if [ "${{ matrix.example }}" == "${TARGET_TEST}" ]; then
40
+ # upload only the target test artifacts
41
+ cd ${TEST_DIR}
42
+ ${GITHUB_WORKSPACE}/ci/clean_build_artifacts.sh `pwd`/${TARGET_TEST_DIR}
43
+ zip -qur artifacts.zip ${TARGET_TEST_DIR}
44
+ fi
38
45
- uses : actions/upload-artifact@v4
46
+ if : ${{ matrix.example == 'broker' }}
39
47
with :
40
48
name : mosq_target_esp32_${{ matrix.idf_ver }}
41
- path : ${{ env.TEST_DIR }}/${{ env.TARGET_TEST }}/ artifacts.zip
49
+ path : ${{ env.TEST_DIR }}/artifacts.zip
42
50
if-no-files-found : error
43
51
44
52
test_mosq :
0 commit comments