Skip to content

Commit

Permalink
fix: Optimize CI machine disk cleanup method to avoid no space left
Browse files Browse the repository at this point in the history
Signed-off-by: tao.yang <[email protected]>
  • Loading branch information
ty-dc committed Aug 8, 2024
1 parent deb3ca1 commit eb68cb6
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions .github/workflows/e2e-init.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,22 @@ jobs:
echo "=========Current system kernel================="
uname -r
- name: Free disk space
- name: Free Disk Space (Ubuntu)
# https://github.com/spidernet-io/spiderpool/issues/3277
# https://github.com/actions/virtual-environments/issues/709
run: |
echo "=========original CI disk space"
df -h
sudo rm -rf "/usr/local/share/boost"
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
echo "=========after clean up, the left CI disk space"
df -h
uses: jlumbroso/free-disk-space@main
with:
# this might remove tools that are actually needed,
# if set to "true" but frees about 6 GB
tool-cache: false
# all of these default to true, but feel free to set to
# "false" if necessary for your workflow
android: true
dotnet: true
haskell: true
large-packages: true
docker-images: true
swap-storage: true

- name: Prepare
id: prepare
Expand Down

0 comments on commit eb68cb6

Please sign in to comment.