Skip to content

Commit 4f8c50b

Browse files
cosmo0920patrick-stephens
authored andcommitted
workflows: Remove unused tools from unit-tests workflow for extending available disk space
Signed-off-by: Hiroshi Hatake <[email protected]>
1 parent 0717103 commit 4f8c50b

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.github/workflows/unit-tests.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,23 @@ jobs:
8080
permissions:
8181
contents: read
8282
steps:
83+
- name: Free disk space
84+
run: |
85+
echo "::group::Disk usage before cleanup"
86+
df -h
87+
echo "::endgroup::"
88+
89+
sudo rm -rf /usr/share/dotnet || true
90+
sudo rm -rf /usr/local/lib/android || true
91+
sudo rm -rf /opt/ghc || true
92+
sudo rm -rf /usr/lib/jvm || true
93+
94+
sudo apt-get clean || true
95+
96+
echo "::group::Disk usage after cleanup"
97+
df -h
98+
echo "::endgroup::"
99+
83100
- name: Setup environment
84101
run: |
85102
sudo apt-get update

0 commit comments

Comments
 (0)