Skip to content

Commit 766134f

Browse files
authored
esp32: remove the built artifacts after build completion (project-chip#42092)
This is needed as we are running out of space on the runners!
1 parent 30d1203 commit 766134f

File tree

1 file changed

+16
-7
lines changed

1 file changed

+16
-7
lines changed

.github/workflows/examples-esp32.yaml

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ jobs:
7373
/tmp/bloat_reports/
7474
7575
- name: Remove built artifacts for all-clusters
76-
run: rm -rf out/esp32-c3devkit-all-clusters
76+
run: rm -rf out/esp32-c3devkit-all-clusters examples/all-clusters-app/esp32/managed_components
7777

7878
- name: Prepare code pregen and ensure compile time pregen not possible
7979
run: |
@@ -101,7 +101,7 @@ jobs:
101101
mv scripts/tools/zap/generate.py.renamed scripts/tools/zap/generate.py
102102
103103
- name: Remove built artifacts for all-clusters-minimal
104-
run: rm -rf out/esp32-m5stack-all-clusters-minimal
104+
run: rm -rf out/esp32-m5stack-all-clusters-minimal examples/all-clusters-minimal-app/esp32/managed_components
105105

106106
- name: Check for changed paths
107107
uses: dorny/paths-filter@v3
@@ -139,21 +139,30 @@ jobs:
139139
"
140140
141141
- name: Remove built artifacts for all-clusters-rpc-ipv6only
142-
run: rm -rf out/esp32-devkitc-all-clusters-rpc-ipv6only
142+
run: rm -rf out/esp32-devkitc-all-clusters-rpc-ipv6only examples/all-clusters-app/esp32/managed_components
143143

144144
- name: Build example Lighting App (Target:ESP32C6)
145-
run: scripts/examples/esp_example.sh lighting-app sdkconfig.wifi_thread.defaults esp32c6
145+
run: |
146+
scripts/examples/esp_example.sh lighting-app sdkconfig.wifi_thread.defaults esp32c6
147+
rm -rf examples/lighting-app/esp32/{build,managed_components}
148+
146149
147150
- name: Build example Lighting App (external platform)
148-
run: scripts/examples/esp_example.sh lighting-app sdkconfig.ext_plat.defaults
151+
run: |
152+
scripts/examples/esp_example.sh lighting-app sdkconfig.ext_plat.defaults
153+
rm -rf examples/lighting-app/esp32/{build,managed_components}
149154
150155
- name: Build example Energy Gateway App
151156
if: steps.changed_paths.outputs.energy_gateway == 'true'
152-
run: scripts/examples/esp_example.sh energy-gateway-app sdkconfig.defaults
157+
run: |
158+
scripts/examples/esp_example.sh energy-gateway-app sdkconfig.defaults
159+
rm -rf examples/energy-gateway-app/esp32/{build,managed_components}
153160
154161
- name: Build example Energy Management App
155162
if: steps.changed_paths.outputs.energy_management == 'true'
156-
run: scripts/examples/esp_example.sh energy-management-app sdkconfig.defaults
163+
run: |
164+
scripts/examples/esp_example.sh energy-management-app sdkconfig.defaults
165+
rm -rf examples/energy-management-app/esp32/{build,managed_components}
157166
158167
- name: Uploading Size Reports
159168
uses: ./.github/actions/upload-size-reports

0 commit comments

Comments
 (0)