Skip to content

Commit 5a33141

Browse files
authored
Do RM-rf out for every build in linux standalone builds. (project-chip#41986)
* Do RM-rf out for every build in linux standalone builds. * Remove extra clean that is redundant.
1 parent 2246553 commit 5a33141

File tree

1 file changed

+21
-27
lines changed

1 file changed

+21
-27
lines changed

.github/workflows/examples-linux-standalone.yaml

Lines changed: 21 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -53,133 +53,127 @@ jobs:
5353
./scripts/run_in_build_env.sh \
5454
"./scripts/build/build_examples.py \
5555
--target linux-x64-chip-cert \
56-
build"
56+
build" && rm -rf out
5757
- name: Build minmdns example with platform dns
5858
run: |
5959
./scripts/run_in_build_env.sh \
6060
"./scripts/build/build_examples.py \
6161
--target linux-x64-address-resolve-tool-platform-mdns-ipv6only \
62-
build"
62+
build" && rm -rf out
6363
- name: Build example Standalone chip tool
6464
run: |
6565
./scripts/run_in_build_env.sh \
6666
"./scripts/build/build_examples.py \
6767
--target linux-x64-chip-tool \
68-
build"
68+
build" && rm -rf out
6969
- name: Build example Standalone Shell
7070
run: |
7171
./scripts/run_in_build_env.sh \
7272
"./scripts/build/build_examples.py \
7373
--target linux-x64-shell \
74-
build"
74+
build" && rm -rf out
7575
- name: Build example Standalone All Clusters Server
7676
run: |
7777
./scripts/run_in_build_env.sh \
7878
"./scripts/build/build_examples.py \
7979
--target linux-x64-all-clusters \
80-
build"
81-
- name: Clean out build output
82-
run: rm -rf ./out
80+
build" && rm -rf out
8381
- name: Build example Standalone All Clusters Minimal Server
8482
run: |
8583
./scripts/run_in_build_env.sh \
8684
"./scripts/build/build_examples.py \
8785
--target linux-x64-all-clusters-minimal \
88-
build"
86+
build" && rm -rf out
8987
- name: Build example TV app
9088
run: |
9189
./scripts/run_in_build_env.sh \
9290
"./scripts/build/build_examples.py \
9391
--target linux-x64-tv-app \
94-
build"
92+
build" && rm -rf out
9593
- name: Build example Standalone TV Casting App
9694
run: |
9795
./scripts/run_in_build_env.sh \
9896
"./scripts/build/build_examples.py \
9997
--target linux-x64-tv-casting-app \
100-
build"
98+
build" && rm -rf out
10199
- name: Build example lighting app with RPCs and UI
102100
run: |
103101
./scripts/run_in_build_env.sh \
104102
"./scripts/build/build_examples.py \
105103
--target linux-x64-light-rpc-with-ui \
106-
build"
107-
- name: Clean out build output
108-
run: rm -rf ./out
104+
build" && rm -rf out
109105
- name: Build example Standalone Bridge
110106
run: |
111107
./scripts/run_in_build_env.sh \
112108
"./scripts/build/build_examples.py \
113109
--target linux-x64-bridge \
114-
build"
110+
build" && rm -rf out
115111
- name: Build example OTA Provider
116112
run: |
117113
./scripts/run_in_build_env.sh \
118114
"./scripts/build/build_examples.py \
119115
--target linux-x64-ota-provider \
120-
build"
116+
build" && rm -rf out
121117
- name: Build example OTA Requestor
122118
run: |
123119
./scripts/run_in_build_env.sh \
124120
"./scripts/build/build_examples.py \
125121
--target linux-x64-ota-requestor \
126-
build"
127-
- name: Clean out build output
128-
run: rm -rf ./out
122+
build" && rm -rf out
129123
- name: Build example Standalone Lock App
130124
run: |
131125
./scripts/run_in_build_env.sh \
132126
"./scripts/build/build_examples.py \
133127
--target linux-x64-lock-no-thread \
134-
build"
128+
build" && rm -rf out
135129
- name: Build example contact sensor with UI
136130
run: |
137131
./scripts/run_in_build_env.sh \
138132
"./scripts/build/build_examples.py \
139133
--target linux-x64-contact-sensor-no-ble-with-ui \
140-
build"
134+
build" && rm -rf out
141135
- name: Build example Air Purifier
142136
run: |
143137
./scripts/run_in_build_env.sh \
144138
"./scripts/build/build_examples.py \
145139
--target linux-x64-air-purifier \
146-
build"
140+
build" && rm -rf out
147141
- name: Build example Fabric Admin
148142
run: |
149143
./scripts/run_in_build_env.sh \
150144
"./scripts/build/build_examples.py \
151145
--target linux-x64-fabric-admin-rpc \
152-
build"
146+
build" && rm -rf out
153147
- name: Build example Fabric Bridge App
154148
run: |
155149
./scripts/run_in_build_env.sh \
156150
"./scripts/build/build_examples.py \
157151
--target linux-x64-fabric-bridge-no-ble-rpc \
158-
build"
152+
build" && rm -rf out
159153
- name: Build example Fabric Sync
160154
run: |
161155
./scripts/run_in_build_env.sh \
162156
"./scripts/build/build_examples.py \
163157
--target linux-x64-fabric-sync-no-ble \
164-
build"
158+
build" && rm -rf out
165159
- name: Build example Camera App
166160
run: |
167161
./scripts/run_in_build_env.sh \
168162
"./scripts/build/build_examples.py \
169163
--target linux-x64-camera \
170-
build"
164+
build" && rm -rf out
171165
- name: Build example Camera Controller App
172166
run: |
173167
./scripts/run_in_build_env.sh \
174168
"./scripts/build/build_examples.py \
175169
--target linux-x64-camera-controller \
176-
build"
170+
build" && rm -rf out
177171
- name: Build Example Closure App
178172
run: |
179173
./scripts/run_in_build_env.sh \
180174
"./scripts/build/build_examples.py \
181175
--target linux-x64-closure \
182-
build"
176+
build" && rm -rf out
183177
184178
- name: CCache statistics
185179
run: ccache --show-stats

0 commit comments

Comments
 (0)