Skip to content

Commit b88a378

Browse files
authored
Add build space maximization step in docs workflow
Added a step to maximize build space by removing unnecessary packages and allocating swap space.
1 parent a87a2e7 commit b88a378

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/gradle.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -398,6 +398,16 @@ jobs:
398398
needs: [ publish ]
399399
runs-on: ubuntu-24.04
400400
steps:
401+
- name: Maximize build space
402+
uses: easimon/maximize-build-space@c28619d8999a147d5e09c1199f84ff6af6ad5794
403+
with:
404+
root-reserve-mb: 1024 # Leave ~1 GB on root FS (default)
405+
swap-size-mb: 2048 # Allocate 2 GB swap (default: 4 GB; reduce if not needed)
406+
remove-dotnet: 'true' # Remove .NET SDK (~3-4 GB savings)
407+
remove-android: 'true' # Remove Android tools (~2 GB savings)
408+
remove-haskell: 'true' # Remove Haskell (~1 GB savings)
409+
remove-codeql: 'true' # Remove CodeQL (~500 MB savings)
410+
remove-docker-images: 'true' # Prune Docker if used (~1-2 GB savings)
401411
- name: "Output Agent IP" # in the event RAO blocks this agent, this can be used to debug it
402412
run: curl -s https://api.ipify.org
403413
- name: "📥 Checkout the repository"

0 commit comments

Comments
 (0)