Skip to content

Commit 728d138

Browse files
authoredOct 18, 2024
[Telink] Reduce CI time (project-chip#36144)
* [Telink] check affect of Checkout fetch-depth * [Telink] Skip some build in PRs
1 parent 8fa33f0 commit 728d138

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed
 

‎.github/workflows/examples-telink.yaml

+30
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ jobs:
6161
# run: scripts/run_in_build_env.sh "python3 scripts/tools/telink/update_zephyr.py 3ed7686a9378de6be1368c912f9a42f998bbfb18"
6262

6363
- name: Build example Telink (B92 retention) Air Quality Sensor App
64+
# Run test for master and s07641069 PRs
65+
if: github.event.pull_request.number == null || github.event.pull_request.head.repo.full_name == 's07641069/connectedhomeip'
6466
run: |
6567
./scripts/run_in_build_env.sh \
6668
"./scripts/build/build_examples.py --target 'telink-tlsr9528a_retention-air-quality-sensor' build"
@@ -73,6 +75,8 @@ jobs:
7375
run: rm -rf ./out
7476

7577
- name: Build example Telink (W91) All Clusters App
78+
# Run test for master and s07641069 PRs
79+
if: github.event.pull_request.number == null || github.event.pull_request.head.repo.full_name == 's07641069/connectedhomeip'
7680
continue-on-error: true
7781
run: |
7882
./scripts/run_in_build_env.sh \
@@ -86,6 +90,8 @@ jobs:
8690
run: rm -rf ./out
8791

8892
- name: Build example Telink (B92) All Clusters Minimal App
93+
# Run test for master and s07641069 PRs
94+
if: github.event.pull_request.number == null || github.event.pull_request.head.repo.full_name == 's07641069/connectedhomeip'
8995
run: |
9096
./scripts/run_in_build_env.sh \
9197
"./scripts/build/build_examples.py --target 'telink-tlsr9528a-all-clusters-minimal' build"
@@ -98,6 +104,7 @@ jobs:
98104
run: rm -rf ./out
99105

100106
- name: Build example Telink (B95) Bridge App
107+
# Run test for master and all PRs
101108
run: |
102109
./scripts/run_in_build_env.sh \
103110
"./scripts/build/build_examples.py --target 'telink-tlsr9258a-bridge' build"
@@ -110,6 +117,7 @@ jobs:
110117
run: rm -rf ./out
111118

112119
- name: Build example Telink (B92 retention) Contact Sensor App
120+
# Run test for master and all PRs
113121
run: |
114122
./scripts/run_in_build_env.sh \
115123
"./scripts/build/build_examples.py --target 'telink-tlsr9528a_retention-contact-sensor' build"
@@ -122,6 +130,7 @@ jobs:
122130
run: rm -rf ./out
123131

124132
- name: Build tools required for Factory Data
133+
# Run test for master and all PRs
125134
run: |
126135
./scripts/checkout_submodules.py --allow-changing-global-git-config --shallow --platform linux
127136
./scripts/build/gn_gen.sh
@@ -132,6 +141,7 @@ jobs:
132141
run: rm -rf ./out/telink*
133142

134143
- name: Build example Telink (W91) Lighting App with OTA, Factory Data
144+
# Run test for master and all PRs
135145
continue-on-error: true
136146
run: |
137147
./scripts/run_in_build_env.sh \
@@ -145,6 +155,7 @@ jobs:
145155
run: rm -rf ./out/telink*
146156

147157
- name: Build example Telink (B91) Lighting App with OTA, RPC, Factory Data and 4Mb flash
158+
# Run test for master and all PRs
148159
run: |
149160
./scripts/run_in_build_env.sh \
150161
"./scripts/build/build_examples.py --target 'telink-tlsr9518adk80d-light-ota-rpc-factory-data-4mb' build"
@@ -157,6 +168,7 @@ jobs:
157168
run: rm -rf ./out/telink*
158169

159170
- name: Build example Telink (B92) Light Switch App with OTA, Shell, Factory Data
171+
# Run test for master and all PRs
160172
run: |
161173
./scripts/run_in_build_env.sh \
162174
"./scripts/build/build_examples.py --target 'telink-tlsr9528a-light-switch-ota-shell-factory-data' build"
@@ -169,6 +181,8 @@ jobs:
169181
run: rm -rf ./out
170182

171183
- name: Build example Telink (B92) Lock App with DFU
184+
# Run test for master and s07641069 PRs
185+
if: github.event.pull_request.number == null || github.event.pull_request.head.repo.full_name == 's07641069/connectedhomeip'
172186
run: |
173187
./scripts/run_in_build_env.sh \
174188
"./scripts/build/build_examples.py --target 'telink-tlsr9528a-lock-dfu' build"
@@ -181,6 +195,8 @@ jobs:
181195
run: rm -rf ./out
182196

183197
- name: Build example Telink (B95) OTA Requestor App
198+
# Run test for master and s07641069 PRs
199+
if: github.event.pull_request.number == null || github.event.pull_request.head.repo.full_name == 's07641069/connectedhomeip'
184200
run: |
185201
./scripts/run_in_build_env.sh \
186202
"./scripts/build/build_examples.py --target 'telink-tlsr9258a-ota-requestor' build"
@@ -193,6 +209,8 @@ jobs:
193209
run: rm -rf ./out
194210

195211
- name: Build example Telink (B91 USB) Pump App
212+
# Run test for master and s07641069 PRs
213+
if: github.event.pull_request.number == null || github.event.pull_request.head.repo.full_name == 's07641069/connectedhomeip'
196214
run: |
197215
./scripts/run_in_build_env.sh \
198216
"./scripts/build/build_examples.py --target 'telink-tlsr9518adk80d-pump-usb' build"
@@ -205,6 +223,8 @@ jobs:
205223
run: rm -rf ./out
206224

207225
- name: Build example Telink (B91) Pump Controller App
226+
# Run test for master and s07641069 PRs
227+
if: github.event.pull_request.number == null || github.event.pull_request.head.repo.full_name == 's07641069/connectedhomeip'
208228
run: |
209229
./scripts/run_in_build_env.sh \
210230
"./scripts/build/build_examples.py --target 'telink-tlsr9518adk80d-pump-controller' build"
@@ -217,6 +237,8 @@ jobs:
217237
run: rm -rf ./out
218238

219239
- name: Build example Telink (B91) Shell App
240+
# Run test for master and s07641069 PRs
241+
if: github.event.pull_request.number == null || github.event.pull_request.head.repo.full_name == 's07641069/connectedhomeip'
220242
run: |
221243
./scripts/run_in_build_env.sh \
222244
"./scripts/build/build_examples.py --target 'telink-tlsr9518adk80d-shell' build"
@@ -229,6 +251,8 @@ jobs:
229251
run: rm -rf ./out
230252

231253
- name: Build example Telink (B92 retention) Smoke CO Alarm App
254+
# Run test for master and s07641069 PRs
255+
if: github.event.pull_request.number == null || github.event.pull_request.head.repo.full_name == 's07641069/connectedhomeip'
232256
run: |
233257
./scripts/run_in_build_env.sh \
234258
"./scripts/build/build_examples.py --target 'telink-tlsr9528a_retention-smoke-co-alarm' build"
@@ -241,6 +265,8 @@ jobs:
241265
run: rm -rf ./out
242266

243267
- name: Build example Telink (B91 Mars) Temperature Measurement App with OTA
268+
# Run test for master and s07641069 PRs
269+
if: github.event.pull_request.number == null || github.event.pull_request.head.repo.full_name == 's07641069/connectedhomeip'
244270
run: |
245271
./scripts/run_in_build_env.sh \
246272
"./scripts/build/build_examples.py --target 'telink-tlsr9518adk80d-temperature-measurement-mars-ota' build"
@@ -253,6 +279,8 @@ jobs:
253279
run: rm -rf ./out
254280

255281
- name: Build example Telink (B91) Thermostat App
282+
# Run test for master and s07641069 PRs
283+
if: github.event.pull_request.number == null || github.event.pull_request.head.repo.full_name == 's07641069/connectedhomeip'
256284
run: |
257285
./scripts/run_in_build_env.sh \
258286
"./scripts/build/build_examples.py --target 'telink-tlsr9518adk80d-thermostat' build"
@@ -265,6 +293,8 @@ jobs:
265293
run: rm -rf ./out
266294

267295
- name: Build example Telink (W91) Window Covering App
296+
# Run test for master and s07641069 PRs
297+
if: github.event.pull_request.number == null || github.event.pull_request.head.repo.full_name == 's07641069/connectedhomeip'
268298
continue-on-error: true
269299
run: |
270300
./scripts/run_in_build_env.sh \

0 commit comments

Comments
 (0)