Skip to content

Commit 153db0d

Browse files
committed
Fix Zoo CI: Add disk cleanup before tests
GitHub-hosted runners ran out of disk space when pulling the Docker image. Added cleanup step to remove unused packages before running tests.
1 parent 1f12371 commit 153db0d

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

.github/workflows/main.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,12 @@ jobs:
7676
permissions:
7777
packages: read
7878
steps:
79+
- name: Free disk space
80+
run: |
81+
sudo rm -rf /usr/share/dotnet /usr/local/lib/android /opt/ghc /opt/hostedtoolcache/CodeQL
82+
sudo docker system prune -af
83+
df -h
84+
7985
- name: Log in to GitHub Container Registry
8086
uses: docker/login-action@v3
8187
with:
@@ -99,6 +105,12 @@ jobs:
99105
permissions:
100106
packages: read
101107
steps:
108+
- name: Free disk space
109+
run: |
110+
sudo rm -rf /usr/share/dotnet /usr/local/lib/android /opt/ghc /opt/hostedtoolcache/CodeQL
111+
sudo docker system prune -af
112+
df -h
113+
102114
- name: Log in to GitHub Container Registry
103115
uses: docker/login-action@v3
104116
with:

0 commit comments

Comments
 (0)