Skip to content

Commit 7d9230d

Browse files
[CI] Remove unused libs in runner to reclaim disk space
1 parent b05e1c5 commit 7d9230d

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/tests.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,18 @@ jobs:
4242
docker_compose_cmd: docker compose -f compose.yml -f compose.ci.yml ${{ inputs.search_engine != 'opensearch' && format('-f compose.{0}.yml', inputs.search_engine) || '' }}
4343

4444
steps:
45+
- name: Disk cleanup
46+
shell: bash
47+
run: |
48+
echo "Before cleanup"
49+
df -h /
50+
echo "Removing SDKs & heavyweight folders..."
51+
sudo rm -rf /usr/local/lib/android || true
52+
sudo rm -rf /usr/local/.ghcup || true
53+
sudo rm -rf /usr/local/share/chromium || true
54+
echo "Final free space:"
55+
df -h /
56+
4557
- name: Setup PHP
4658
uses: shivammathur/setup-php@v2
4759
with:

0 commit comments

Comments
 (0)