Skip to content

Commit

Permalink
add free disk space step
Browse files Browse the repository at this point in the history
  • Loading branch information
Augustyniak committed Sep 30, 2024
1 parent 860555c commit 1079e89
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/android.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,8 @@ jobs:
- name: Check Licenses for modules
working-directory: ./platform/jvm
run: ./gradlew replay:checkLicense common:checkLicense # capture:checkLicense doesn't work at the moment
- name: Clean up space # Refer to https://github.com/ReactiveCircus/android-emulator-runner/issues/377#issuecomment-2296679727 for more details.
run: ./ci/free_disk_space.sh
- name: Instrumentation Tests
uses: reactivecircus/android-emulator-runner@f0d1ed2dcad93c7479e8b2f2226c83af54494915 # [email protected]
with:
Expand Down Expand Up @@ -198,6 +200,8 @@ jobs:
profile: Nexus 6
emulator-options: -no-window -accel on -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
script: echo "Generated AVD snapshot for caching."
- name: Clean up space # Refer to https://github.com/ReactiveCircus/android-emulator-runner/issues/377#issuecomment-2296679727 for more details.
run: ./ci/free_disk_space.sh
- name: run tests
uses: reactivecircus/android-emulator-runner@v2
timeout-minutes: 15
Expand Down
10 changes: 10 additions & 0 deletions ci/free_disk_space.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash

set -euxo pipefail

# Refer to https://github.com/ReactiveCircus/android-emulator-runner/issues/377#issuecomment-2296679727 for more details.

rm -rf "$AGENT_TOOLSDIRECTORY"
rm -rf /usr/share/dotnet
rm -rf /opt/ghc...
rm -f /mnt/swapfile

0 comments on commit 1079e89

Please sign in to comment.