Skip to content

Commit

Permalink
Remove some unused CIPD packages before android compile. (#29530)
Browse files Browse the repository at this point in the history
This should save about 2.5GB of space.
Ideally we should not download these in the first place,
however I would have to figure out how to set that up.

For now tested locally that compile seems to pass because we
use the NDK, however CI will fully validate this.
  • Loading branch information
andy31415 authored Oct 2, 2023
1 parent 4fa3721 commit 188cf7d
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/full-android.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,16 @@ jobs:
with:
platform: android

- name: Cleanup pigweed CIPD packages
# This should not generally be needed, however android CI runs out of space
# We do not need pigweed cross compile here because we use android NDK
# compilers, so removing rust and arm compilers saves 2.5GB
run: |
du -sh .environment/cipd/packages/pigweed/rust \
.environment/cipd/packages/arm
rm -rf .environment/cipd/packages/pigweed/rust \
.environment/cipd/packages/arm
- name: Build Android arm-chip-tool
run: |
./scripts/run_in_build_env.sh \
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/smoketest-android.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,16 @@ jobs:
uses: ./.github/actions/checkout-submodules-and-bootstrap
with:
platform: android
- name: Cleanup pigweed CIPD packages
# This should not generally be needed, however android CI runs out of space
# We do not need pigweed cross compile here because we use android NDK
# compilers, so removing rust and arm compilers saves 2.5GB
run: |
du -sh .environment/cipd/packages/pigweed/rust \
.environment/cipd/packages/arm
rm -rf .environment/cipd/packages/pigweed/rust \
.environment/cipd/packages/arm
- name: Build Android CHIPTool and CHIPTest (ARM64)
run: |
Expand Down

0 comments on commit 188cf7d

Please sign in to comment.