Skip to content

Commit 27e2821

Browse files
committed
ci: free disk space before docker build to prevent pip install failures
1 parent f6d8cb8 commit 27e2821

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,17 @@ jobs:
5858
image-tag: ${{ steps.meta.outputs.tags }}
5959
image-digest: ${{ steps.build.outputs.digest }}
6060
steps:
61+
- name: Free disk space
62+
run: |
63+
sudo rm -rf /usr/share/dotnet
64+
sudo rm -rf /usr/local/lib/android
65+
sudo rm -rf /opt/ghc
66+
sudo rm -rf /opt/hostedtoolcache/CodeQL
67+
sudo rm -rf /opt/hostedtoolcache/go
68+
sudo rm -rf /opt/hostedtoolcache/node
69+
docker system prune -af
70+
df -h
71+
6172
- name: Checkout repository
6273
uses: actions/checkout@v6
6374

@@ -79,6 +90,9 @@ jobs:
7990
tags: |
8091
type=sha,prefix={{branch}}-
8192
93+
- name: Check disk space before build
94+
run: df -h
95+
8296
- name: Build and push CI image
8397
id: build
8498
timeout-minutes: 20

0 commit comments

Comments
 (0)