Skip to content

Commit d83ab34

Browse files
committed
Fix for storage space issue with action images
Signed-off-by: Eric Kerfoot <[email protected]>
1 parent 8aae06a commit d83ab34

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/pythonapp.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,14 @@ jobs:
2828
matrix:
2929
opt: ["codeformat", "pytype", "mypy"]
3030
steps:
31+
- name: Clean unused tools
32+
run: |
33+
find /opt/hostedtoolcache/* -maxdepth 0 ! -name 'Python' -exec rm -rf {} \;
34+
sudo rm -rf /usr/share/dotnet
35+
sudo rm -rf /usr/local/lib/android
36+
sudo rm -rf /opt/ghc /usr/local/.ghcup
37+
sudo docker system prune -f
38+
3139
- uses: actions/checkout@v6
3240
- name: Set up Python 3.9
3341
uses: actions/setup-python@v6
@@ -213,6 +221,14 @@ jobs:
213221
build-docs:
214222
runs-on: ubuntu-latest
215223
steps:
224+
- name: Clean unused tools
225+
run: |
226+
find /opt/hostedtoolcache/* -maxdepth 0 ! -name 'Python' -exec rm -rf {} \;
227+
sudo rm -rf /usr/share/dotnet
228+
sudo rm -rf /usr/local/lib/android
229+
sudo rm -rf /opt/ghc /usr/local/.ghcup
230+
sudo docker system prune -f
231+
216232
- uses: actions/checkout@v6
217233
- name: Set up Python 3.9
218234
uses: actions/setup-python@v6

0 commit comments

Comments
 (0)