Skip to content

Commit 5ddd255

Browse files
authored
Update build space maximization step in workflow
Replaced the Maximize build space step with a custom script to free up space by removing specific tools.
1 parent 0be33e4 commit 5ddd255

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

.github/workflows/publish.yml

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,18 @@ jobs:
1313
if: github.repository == 'apache/grails-static-website'
1414
runs-on: ubuntu-latest
1515
steps:
16-
- name: Maximize build space
17-
uses: easimon/maximize-build-space@c28619d8999a147d5e09c1199f84ff6af6ad5794
18-
with:
19-
root-reserve-mb: 4096 # Leave ~4 GB on root FS (default)
20-
swap-size-mb: 2048 # Allocate 2 GB swap (default: 4 GB; reduce if not needed)
21-
remove-dotnet: 'true' # Remove .NET SDK (~3-4 GB savings)
22-
remove-android: 'true' # Remove Android tools (~2 GB savings)
23-
remove-haskell: 'true' # Remove Haskell (~1 GB savings)
24-
remove-codeql: 'true' # Remove CodeQL (~500 MB savings)
25-
remove-docker-images: 'false' # Prune Docker if used (~1-2 GB savings)
16+
- name: "⚙️ Maximize build space"
17+
run: |
18+
echo "-- Dotnet"
19+
sudo rm -rf /usr/share/dotnet
20+
echo "-- Android"
21+
sudo rm -rf /usr/local/lib/android
22+
echo "-- Haskell"
23+
sudo rm -rf /opt/ghc
24+
echo "-- CodeQL"
25+
sudo rm -rf /opt/hostedtoolcache/CodeQL
26+
27+
df -h
2628
- uses: actions/checkout@v4
2729
- uses: actions/cache@v4
2830
with:

0 commit comments

Comments
 (0)