Skip to content

Commit 957de31

Browse files
committed
chore(ci): try to fix android build by freeing up space
1 parent b77dd49 commit 957de31

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

.github/workflows/build-android.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,24 @@ jobs:
2828
with:
2929
submodules: recursive
3030

31+
# Problem: there is only 14 GB of disk space available on GitHub runners
32+
# Solution: free up space by removing unneeded files
33+
- name: Freeup space
34+
run: |
35+
df -h
36+
echo "Removing hosted toolcache..."
37+
sudo rm -rf /opt/hostedtoolcache || true
38+
39+
echo "Removing .NET..."
40+
sudo rm -rf /usr/share/dotnet || true
41+
42+
echo "Removing GHC / Haskell..."
43+
sudo rm -rf /opt/ghc || true
44+
sudo rm -rf /usr/local/.ghcup || true
45+
df -h
46+
47+
48+
3149
- name: Setup Bun
3250
uses: oven-sh/setup-bun@v2
3351
with:

0 commit comments

Comments
 (0)