Skip to content

Commit

Permalink
Merge pull request #3851 from ty-dc/release-v0.9
Browse files Browse the repository at this point in the history
fix: Optimize CI machine disk cleanup method to avoid no space left
  • Loading branch information
weizhoublue committed Aug 8, 2024
2 parents deb3ca1 + eb68cb6 commit d76392c
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 d76392c

Please sign in to comment.