-
Notifications
You must be signed in to change notification settings - Fork 257
66 lines (61 loc) · 2.53 KB
/
test-examples.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: "Build example apps"
on:
push:
branches:
- master
pull_request:
types: [opened, synchronize, reopened, labeled]
jobs:
cpp-compatibility:
name: Cpp compatibility
strategy:
matrix:
idf_version: ["release-v5.0", "release-v5.1", "latest"]
target: ["esp32"]
example: [{name: cpp_compatibility, path: "build_test"}]
uses: "./.github/workflows/build-app.yml"
with:
idf_version: ${{matrix.idf_version}}
target: ${{matrix.target}}
app_name: ${{matrix.example.name}}
app_path: $IDF_PATH/tools/test_apps/protocols/mqtt/${{matrix.example.path}}
upload_artifacts: false
build-only-example:
name: Build Only Apps
strategy:
matrix:
idf_version: ["release-v5.0", "release-v5.1", "latest"]
target: ["esp32s2", "esp32c3", "esp32s3"]
example: [{name: ssl_psk, path: "mqtt/ssl_psk"}]
uses: "./.github/workflows/build-app.yml"
with:
idf_version: ${{matrix.idf_version}}
target: ${{matrix.target}}
app_name: ${{matrix.example.name}}
app_path: $IDF_PATH/examples/protocols/${{matrix.example.path}}
build-only-ds-example:
name: Build Only Apps
strategy:
matrix:
idf_version: ["release-v5.0", "release-v5.1", "latest"]
target: ["esp32s2", "esp32c3", "esp32s3"]
example: [{name: ssl_ds, path: "mqtt/ssl_ds"}, {name: ssl_psk, path: "mqtt/ssl_psk"}]
uses: "./.github/workflows/build-app.yml"
with:
idf_version: ${{matrix.idf_version}}
target: ${{matrix.target}}
app_name: ${{matrix.example.name}}
app_path: $IDF_PATH/examples/protocols/${{matrix.example.path}}
build-examples:
name: Build and Run on target
strategy:
matrix:
idf_version: ["release-v5.0", "release-v5.1", "latest"]
target: ["esp32"]
example: [{name: tcp, path: "mqtt/tcp"}, {name: ssl, path: "mqtt/ssl"},{name: ssl_mutual_auth, path: "mqtt/ssl_mutual_auth"},{name: ws, path: "mqtt/ws"},{name: wss, path: "mqtt/wss"}]
uses: "./.github/workflows/build-and-target-test.yml"
with:
idf_version: ${{matrix.idf_version}}
target: ${{matrix.target}}
app_name: ${{matrix.example.name}}
app_path: $IDF_PATH/examples/protocols/${{matrix.example.path}}