Skip to content

Commit

Permalink
Cleanup android out folder in between builds (to not run out of disk … (
Browse files Browse the repository at this point in the history
#15235)

* Cleanup android out folder in between builds (to not run out of disk space)

* Fix ordering of cleanup
  • Loading branch information
andy31415 authored Feb 16, 2022
1 parent aaef642 commit 0364ede
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions .github/workflows/android.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 0364ede

Please sign in to comment.