From 11420236e0f9e389710f2ce5a217a815ed61a058 Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Fri, 23 Jun 2023 16:10:52 -0400 Subject: [PATCH] Do a `rm -rf out` after each mbed build, to save storage (#27444) --- .github/workflows/examples-mbed.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/examples-mbed.yaml b/.github/workflows/examples-mbed.yaml index 58ad5628bd0c37..4499e32db93f2a 100644 --- a/.github/workflows/examples-mbed.yaml +++ b/.github/workflows/examples-mbed.yaml @@ -108,6 +108,7 @@ jobs: mbed $APP_TARGET+$APP_PROFILE lock-app \ examples/lock-app/mbed/build-CY8CPROTO_062_4343W/release/chip-mbed-lock-app-example.elf \ /tmp/bloat_reports/ + rm -rf ./out - name: Build lighting-app example if: github.event_name == 'push' || steps.changed_paths.outputs.mbed == 'true' @@ -118,6 +119,7 @@ jobs: mbed $APP_TARGET+$APP_PROFILE lighting-app \ examples/lighting-app/mbed/build-CY8CPROTO_062_4343W/release/chip-mbed-lighting-app-example.elf \ /tmp/bloat_reports/ + rm -rf ./out - name: Build pigweed-app example if: github.event_name == 'push' || steps.changed_paths.outputs.pigweedapp == 'true' @@ -128,6 +130,7 @@ jobs: mbed $APP_TARGET+$APP_PROFILE pigweed-app \ examples/pigweed-app/mbed/build-CY8CPROTO_062_4343W/release/chip-mbed-pigweed-app-example.elf \ /tmp/bloat_reports/ + rm -rf ./out - name: Build all-clusters-app example if: github.event_name == 'push' || steps.changed_paths.outputs.mbed == 'true' @@ -138,6 +141,7 @@ jobs: mbed $APP_TARGET+$APP_PROFILE all-clusters-app \ examples/all-clusters-app/mbed/build-CY8CPROTO_062_4343W/release/chip-mbed-all-clusters-app-example.elf \ /tmp/bloat_reports/ + rm -rf ./out - name: Build all-clusters-minimal-app example if: github.event_name == 'push' || steps.changed_paths.outputs.mbed == 'true' @@ -148,6 +152,7 @@ jobs: mbed $APP_TARGET+$APP_PROFILE all-clusters-minimal-app \ examples/all-clusters-minimal-app/mbed/build-CY8CPROTO_062_4343W/release/chip-mbed-all-clusters-minimal-app-example.elf \ /tmp/bloat_reports/ + rm -rf ./out - name: Build shell example if: github.event_name == 'push' || steps.changed_paths.outputs.mbed == 'true' @@ -158,6 +163,7 @@ jobs: mbed $APP_TARGET+$APP_PROFILE shell \ examples/shell/mbed/build-CY8CPROTO_062_4343W/release/chip-mbed-shell-example.elf \ /tmp/bloat_reports/ + rm -rf ./out - name: Build ota-requestor-app example if: github.event_name == 'push' || steps.changed_paths.outputs.mbed == 'true' @@ -168,6 +174,7 @@ jobs: mbed $APP_TARGET+$APP_PROFILE shell \ examples/ota-requestor-app/mbed/build-CY8CPROTO_062_4343W/release/chip-mbed-ota-requestor-app-example.elf \ /tmp/bloat_reports/ + rm -rf ./out - name: Build unit tests # Temporarily disable build due to running out of flash space