Add free disk space action to CI actions (#6212)

* Add free disk space action

* Remove 'upload APK for Maestro' step since it's no longer used

* Re-enable tool-cache removal

* Add the free disk space step to other gradle-related jobs

* Use commit SHA

* Disable removing `large-packages`
This commit is contained in:
Jorge Martin Espinosa 2026-02-18 22:55:50 +01:00 committed by GitHub
parent 23f105442e
commit 7a7a473c82
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 154 additions and 10 deletions

View file

@ -17,6 +17,20 @@ jobs:
if: github.event_name == 'workflow_dispatch' || github.event.label.name == 'Record-Screenshots'
steps:
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be
with:
# This might remove tools that are actually needed, if set to "true" but frees about 6 GB
tool-cache: true
# All of these default to true, but we should only need the 'android' one (and maybe swap-storage?)
android: false
dotnet: true
haskell: true
# This takes way too long to run (~2 minutes) and it saves only ~5.5GB
large-packages: false
docker-images: true
swap-storage: false
- name: Remove Record-Screenshots label
if: github.event.label.name == 'Record-Screenshots'
uses: actions-ecosystem/action-remove-labels@2ce5d41b4b6aa8503e285553f75ed56e0a40bae0 # v1.3.0