From 10514086c2df08102b52d771700de56ab569952b Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Fri, 16 Jun 2023 15:17:09 -0400 Subject: [PATCH] Clean out android outputs more aggressively (#27297) Builds unfortunately are placing files in the source tree instead of just limiting themselves to out. Try to clean things a bit more thoroughly. Co-authored-by: Andrei Litvin --- .github/workflows/full-android.yaml | 12 ++++++------ .github/workflows/smoketest-android.yaml | 2 ++ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/full-android.yaml b/.github/workflows/full-android.yaml index 3b39c71b58a836..5f9582c5eced37 100644 --- a/.github/workflows/full-android.yaml +++ b/.github/workflows/full-android.yaml @@ -90,31 +90,31 @@ jobs: ./scripts/run_in_build_env.sh \ "./scripts/build/build_examples.py --target android-arm-chip-tool build" - name: Clean out build output - run: rm -rf ./out + run: rm -rf ./out examples/android/CHIPTool/app/libs/jniLibs/* - name: Build Android arm-tv-casting-app run: | ./scripts/run_in_build_env.sh \ "./scripts/build/build_examples.py --target android-arm-tv-casting-app build" - name: Clean out build output - run: rm -rf ./out + run: rm -rf ./out examples/android/CHIPTool/app/libs/jniLibs/* - name: Build Android arm-tv-server run: | ./scripts/run_in_build_env.sh \ "./scripts/build/build_examples.py --target android-arm-tv-server build" - name: Clean out build output - run: rm -rf ./out + run: rm -rf ./out examples/android/CHIPTool/app/libs/jniLibs/* - name: Build Android arm64-tv-casting-app run: | ./scripts/run_in_build_env.sh \ "./scripts/build/build_examples.py --target android-arm64-tv-casting-app build" - name: Clean out build output - run: rm -rf ./out + run: rm -rf ./out examples/android/CHIPTool/app/libs/jniLibs/* - name: Build Android arm64-tv-server run: | ./scripts/run_in_build_env.sh \ "./scripts/build/build_examples.py --target android-arm64-tv-server build" - name: Clean out build output - run: rm -rf ./out + run: rm -rf ./out examples/android/CHIPTool/app/libs/jniLibs/* - name: Build Android arm64-chip-tool run: | ./scripts/run_in_build_env.sh \ @@ -124,7 +124,7 @@ jobs: ./scripts/run_in_build_env.sh \ "ninja -C out/android-arm64-chip-tool build/chip/java/tests:java_build_test" - name: Clean out build output - run: rm -rf ./out + run: rm -rf ./out examples/android/CHIPTool/app/libs/jniLibs/* # - name: Build Android Studio build (arm64 only) # run: | # ./scripts/run_in_build_env.sh \ diff --git a/.github/workflows/smoketest-android.yaml b/.github/workflows/smoketest-android.yaml index cce15a04079562..21837f201ccfec 100644 --- a/.github/workflows/smoketest-android.yaml +++ b/.github/workflows/smoketest-android.yaml @@ -84,6 +84,8 @@ jobs: run: | ./scripts/run_in_build_env.sh \ "ninja -C out/android-arm64-chip-tool build/chip/java/tests:java_build_test" + - name: Clean out build output + run: rm -rf ./out examples/android/CHIPTool/app/libs/jniLibs/* - name: Build Android arm64-tv-casting-app run: | ./scripts/run_in_build_env.sh \