Skip to content

Commit 895a873

Browse files
committed
Add the free disk space step to other gradle-related jobs
1 parent 68a9815 commit 895a873

File tree

9 files changed

+140
-0
lines changed

9 files changed

+140
-0
lines changed

.github/workflows/build_enterprise.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,20 @@ jobs:
2727
group: ${{ github.ref == 'refs/heads/develop' && format('build-develop-enterprise-{0}-{1}', matrix.variant, github.sha) || format('build-enterprise-{0}-{1}', matrix.variant, github.ref) }}
2828
cancel-in-progress: true
2929
steps:
30+
- name: Free Disk Space (Ubuntu)
31+
uses: jlumbroso/free-disk-space@main
32+
with:
33+
# This might remove tools that are actually needed, if set to "true" but frees about 6 GB
34+
tool-cache: true
35+
# All of these default to true, but we should only need the 'android' one (and maybe swap-storage?)
36+
android: false
37+
dotnet: true
38+
haskell: true
39+
# This takes way too long to run
40+
large-packages: true
41+
docker-images: true
42+
swap-storage: false
43+
3044
- uses: actions/checkout@v6
3145
with:
3246
# Ensure we are building the branch and not the branch after being merged on develop

.github/workflows/maestro-local.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,20 @@ jobs:
2222
group: ${{ format('maestro-build-{0}', github.ref) }}
2323
cancel-in-progress: true
2424
steps:
25+
- name: Free Disk Space (Ubuntu)
26+
uses: jlumbroso/free-disk-space@main
27+
with:
28+
# This might remove tools that are actually needed, if set to "true" but frees about 6 GB
29+
tool-cache: true
30+
# All of these default to true, but we should only need the 'android' one (and maybe swap-storage?)
31+
android: false
32+
dotnet: true
33+
haskell: true
34+
# This takes way too long to run
35+
large-packages: true
36+
docker-images: true
37+
swap-storage: false
38+
2539
- uses: actions/checkout@v6
2640
with:
2741
# Ensure we are building the branch and not the branch after being merged on develop

.github/workflows/nightly.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,20 @@ jobs:
1616
runs-on: ubuntu-latest
1717
if: ${{ github.repository == 'element-hq/element-x-android' }}
1818
steps:
19+
- name: Free Disk Space (Ubuntu)
20+
uses: jlumbroso/free-disk-space@main
21+
with:
22+
# This might remove tools that are actually needed, if set to "true" but frees about 6 GB
23+
tool-cache: true
24+
# All of these default to true, but we should only need the 'android' one (and maybe swap-storage?)
25+
android: false
26+
dotnet: true
27+
haskell: true
28+
# This takes way too long to run
29+
large-packages: true
30+
docker-images: true
31+
swap-storage: false
32+
1933
- uses: actions/checkout@v6
2034
- name: Use JDK 21
2135
uses: actions/setup-java@v5

.github/workflows/nightlyReports.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,20 @@ jobs:
1717
runs-on: ubuntu-latest
1818
if: ${{ github.repository == 'element-hq/element-x-android' }}
1919
steps:
20+
- name: Free Disk Space (Ubuntu)
21+
uses: jlumbroso/free-disk-space@main
22+
with:
23+
# This might remove tools that are actually needed, if set to "true" but frees about 6 GB
24+
tool-cache: true
25+
# All of these default to true, but we should only need the 'android' one (and maybe swap-storage?)
26+
android: false
27+
dotnet: true
28+
haskell: true
29+
# This takes way too long to run
30+
large-packages: true
31+
docker-images: true
32+
swap-storage: false
33+
2034
- name: ⏬ Checkout with LFS
2135
uses: nschloe/action-cached-lfs-checkout@f46300cd8952454b9f0a21a3d133d4bd5684cfc2 # v1.2.3
2236

.github/workflows/quality.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,20 @@ jobs:
1717
name: Search for forbidden patterns
1818
runs-on: ubuntu-latest
1919
steps:
20+
- name: Free Disk Space (Ubuntu)
21+
uses: jlumbroso/free-disk-space@main
22+
with:
23+
# This might remove tools that are actually needed, if set to "true" but frees about 6 GB
24+
tool-cache: true
25+
# All of these default to true, but we should only need the 'android' one (and maybe swap-storage?)
26+
android: false
27+
dotnet: true
28+
haskell: true
29+
# This takes way too long to run
30+
large-packages: true
31+
docker-images: true
32+
swap-storage: false
33+
2034
- uses: actions/checkout@v6
2135
- name: Add SSH private keys for submodule repositories
2236
uses: webfactory/ssh-agent@a6f90b1f127823b31d4d4a8d96047790581349bd # v0.9.1

.github/workflows/recordScreenshots.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,20 @@ jobs:
1717
if: github.event_name == 'workflow_dispatch' || github.event.label.name == 'Record-Screenshots'
1818

1919
steps:
20+
- name: Free Disk Space (Ubuntu)
21+
uses: jlumbroso/free-disk-space@main
22+
with:
23+
# This might remove tools that are actually needed, if set to "true" but frees about 6 GB
24+
tool-cache: true
25+
# All of these default to true, but we should only need the 'android' one (and maybe swap-storage?)
26+
android: false
27+
dotnet: true
28+
haskell: true
29+
# This takes way too long to run
30+
large-packages: true
31+
docker-images: true
32+
swap-storage: false
33+
2034
- name: Remove Record-Screenshots label
2135
if: github.event.label.name == 'Record-Screenshots'
2236
uses: actions-ecosystem/action-remove-labels@2ce5d41b4b6aa8503e285553f75ed56e0a40bae0 # v1.3.0

.github/workflows/release.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,20 @@ jobs:
1818
group: ${{ format('build-release-main-gplay-{0}', github.sha) }}
1919
cancel-in-progress: true
2020
steps:
21+
- name: Free Disk Space (Ubuntu)
22+
uses: jlumbroso/free-disk-space@main
23+
with:
24+
# This might remove tools that are actually needed, if set to "true" but frees about 6 GB
25+
tool-cache: true
26+
# All of these default to true, but we should only need the 'android' one (and maybe swap-storage?)
27+
android: false
28+
dotnet: true
29+
haskell: true
30+
# This takes way too long to run
31+
large-packages: true
32+
docker-images: true
33+
swap-storage: false
34+
2135
- uses: actions/checkout@v6
2236
- name: Use JDK 21
2337
uses: actions/setup-java@v5
@@ -88,6 +102,20 @@ jobs:
88102
group: ${{ format('build-release-main-fdroid-{0}', github.sha) }}
89103
cancel-in-progress: true
90104
steps:
105+
- name: Free Disk Space (Ubuntu)
106+
uses: jlumbroso/free-disk-space@main
107+
with:
108+
# This might remove tools that are actually needed, if set to "true" but frees about 6 GB
109+
tool-cache: true
110+
# All of these default to true, but we should only need the 'android' one (and maybe swap-storage?)
111+
android: false
112+
dotnet: true
113+
haskell: true
114+
# This takes way too long to run
115+
large-packages: true
116+
docker-images: true
117+
swap-storage: false
118+
91119
- uses: actions/checkout@v6
92120
- name: Use JDK 21
93121
uses: actions/setup-java@v5

.github/workflows/sonar.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,20 @@ jobs:
2222
group: ${{ format('sonar-{0}', github.ref) }}
2323
cancel-in-progress: ${{ github.ref != 'refs/heads/main' && github.ref != 'refs/heads/develop' }}
2424
steps:
25+
- name: Free Disk Space (Ubuntu)
26+
uses: jlumbroso/free-disk-space@main
27+
with:
28+
# This might remove tools that are actually needed, if set to "true" but frees about 6 GB
29+
tool-cache: true
30+
# All of these default to true, but we should only need the 'android' one (and maybe swap-storage?)
31+
android: false
32+
dotnet: true
33+
haskell: true
34+
# This takes way too long to run
35+
large-packages: true
36+
docker-images: true
37+
swap-storage: false
38+
2539
- uses: actions/checkout@v6
2640
with:
2741
# Ensure we are building the branch and not the branch after being merged on develop

.github/workflows/tests.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,20 @@ jobs:
2222
group: ${{ github.ref == 'refs/heads/main' && format('unit-tests-main-{0}', github.sha) || github.ref == 'refs/heads/develop' && format('unit-tests-develop-{0}', github.sha) || format('unit-tests-{0}', github.ref) }}
2323
cancel-in-progress: true
2424
steps:
25+
- name: Free Disk Space (Ubuntu)
26+
uses: jlumbroso/free-disk-space@main
27+
with:
28+
# This might remove tools that are actually needed, if set to "true" but frees about 6 GB
29+
tool-cache: true
30+
# All of these default to true, but we should only need the 'android' one (and maybe swap-storage?)
31+
android: false
32+
dotnet: true
33+
haskell: true
34+
# This takes way too long to run
35+
large-packages: true
36+
docker-images: true
37+
swap-storage: false
38+
2539
# Increase swapfile size to prevent screenshot tests getting terminated
2640
# https://github.com/actions/runner-images/discussions/7188#discussioncomment-6750749
2741
- name: 💽 Increase swapfile size

0 commit comments

Comments
 (0)