File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments