Skip to content

Commit 5570bd1

Browse files
authored
Update check-bioc.yml
1 parent 10e5df5 commit 5570bd1

1 file changed

Lines changed: 16 additions & 12 deletions

File tree

.github/workflows/check-bioc.yml

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -125,20 +125,24 @@ jobs:
125125
uses: r-lib/actions/setup-pandoc@v2
126126

127127
## Remove unnecessary files according to:
128-
# https://github.com/endersonmenezes/free-disk-space
129-
130-
- name: Export env variables for Free Disk Space (Ubuntu)
128+
# https://www.geraldonit.com/mastering-disk-space-on-github-actions-runners-a-deep-dive-into-cleanup-strategies-for-x64-and-arm64-runners/
129+
- name: Clean Up Disk Space
131130
if: runner.os == 'Linux'
132131
run: |
133-
export AGENT_TOOLSDIRECTORY=/usr/local/bin
134-
135-
- name: Free Disk Space (Ubuntu)
136-
if: runner.os == 'Linux'
137-
uses: endersonmenezes/free-disk-space@v3
138-
with:
139-
remove_android: true
140-
remove_dotnet: true
141-
remove_folders: "/usr/share/swift /usr/local/julia"
132+
# Space usage before cleanup
133+
df -h /
134+
135+
# Remove unused tool caches (comment any required ones with #)
136+
sudo rm -rf /usr/lib/jvm
137+
sudo rm -rf /usr/local/.ghcup
138+
sudo rm -rf /usr/local/lib/android
139+
sudo rm -rf /usr/local/share/powershell
140+
sudo rm -rf /usr/share/dotnet
141+
sudo rm -rf /usr/share/swift
142+
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
143+
144+
# Verify gains
145+
df -h /
142146

143147
## Create the path that will be used for caching packages on Linux
144148
- name: Create R_LIBS_USER on Linux

0 commit comments

Comments
 (0)