From 0364edeaac1413e1ddd19d7fa26f6b3ad0ebad4f Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Wed, 16 Feb 2022 00:17:26 -0500 Subject: [PATCH] =?UTF-8?q?Cleanup=20android=20out=20folder=20in=20between?= =?UTF-8?q?=20builds=20(to=20not=20run=20out=20of=20disk=20=E2=80=A6=20(#1?= =?UTF-8?q?5235)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Cleanup android out folder in between builds (to not run out of disk space) * Fix ordering of cleanup --- .github/workflows/android.yaml | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/.github/workflows/android.yaml b/.github/workflows/android.yaml index 5f266323e320f1..311e03b060be59 100644 --- a/.github/workflows/android.yaml +++ b/.github/workflows/android.yaml @@ -54,15 +54,23 @@ jobs: path: | .environment/gn_out/.ninja_log .environment/pigweed-venv/*.log - - name: Build Android CHIPTool and CHIPTest + - name: Build Android CHIPTool and CHIPTest (ARM) run: | ./scripts/run_in_build_env.sh \ - "./scripts/build/build_examples.py --no-log-timestamps --target-glob 'android-{arm,arm64}-chip-*' build" - # - name: Build Android Studio build (arm64 only) - # run: | - # ./scripts/run_in_build_env.sh \ - # "./scripts/build/build_examples.py --no-log-timestamps --target-glob 'android-androidstudio-arm64-chip-tool' build" + "./scripts/build/build_examples.py --no-log-timestamps --target-glob 'android-arm-chip-*' build" + - name: Clean out build output + run: rm -rf ./out + - name: Build Android CHIPTool and CHIPTest (ARM64) + run: | + ./scripts/run_in_build_env.sh \ + "./scripts/build/build_examples.py --no-log-timestamps --target-glob 'android-arm64-chip-*' build" - name: Run Android build rule tests run: | ./scripts/run_in_build_env.sh \ "ninja -C out/android-arm64-chip-tool build/chip/java/tests:java_build_test.tests" + - name: Clean out build output + run: rm -rf ./out + # - name: Build Android Studio build (arm64 only) + # run: | + # ./scripts/run_in_build_env.sh \ + # "./scripts/build/build_examples.py --no-log-timestamps --target-glob 'android-androidstudio-arm64-chip-tool' build"