Skip to content

Commit

Permalink
update logic for free disk
Browse files Browse the repository at this point in the history
  • Loading branch information
Aloys Zhang committed Sep 29, 2024
1 parent 31aa238 commit 91ce331
Showing 1 changed file with 15 additions and 10 deletions.
25 changes: 15 additions & 10 deletions .github/workflows/ci_ut.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,16 +60,21 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Remove unnecessary packages
run: |
echo "=== Before pruning ==="
df -h
sudo rm -rf /usr/share/dotnet
sudo rm -rf /usr/local/lib/android
sudo rm -rf /opt/ghc
echo
echo "=== After pruning ==="
df -h
- name: Free Disk Space
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: Set up JDK
uses: actions/setup-java@v4
Expand Down

0 comments on commit 91ce331

Please sign in to comment.