Skip to content

Commit 5a97fb4

Browse files
authored
Update check-bioc.yml
Last try to free up space for ubuntu GHA
1 parent 56dd4b5 commit 5a97fb4

1 file changed

Lines changed: 19 additions & 5 deletions

File tree

.github/workflows/check-bioc.yml

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -125,14 +125,28 @@ jobs:
125125
uses: r-lib/actions/setup-pandoc@v2
126126

127127
## Remove unnecessary files according to:
128-
# https://github.com/actions/runner-images/issues/2840#issuecomment-790492173
128+
# https://github.com/actions/runner-images/issues/2840#issuecomment-3605992264
129129
- name: Remove unnecessary files to release disk space
130130
if: runner.os == 'Linux'
131131
run: |
132-
sudo rm -rf /usr/share/dotnet
133-
sudo rm -rf /opt/ghc
134-
sudo rm -rf "/usr/local/share/boost"
135-
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
132+
sudo df -TBG /
133+
sudo rm -rf \
134+
"$AGENT_TOOLSDIRECTORY" \
135+
/opt/ghc \
136+
/opt/google/chrome \
137+
/opt/microsoft/msedge \
138+
/opt/microsoft/powershell \
139+
/opt/pipx \
140+
/usr/lib/mono \
141+
/usr/local/julia* \
142+
/usr/local/lib/android \
143+
/usr/local/lib/node_modules \
144+
/usr/local/share/chromium \
145+
/usr/local/share/powershell \
146+
/usr/local/share/powershell \
147+
/usr/share/dotnet \
148+
/usr/share/swift
149+
sudo df -TBG /
136150
137151
## Create the path that will be used for caching packages on Linux
138152
- name: Create R_LIBS_USER on Linux

0 commit comments

Comments
 (0)