Skip to content

Commit 0c18bb9

Browse files
committed
workflows: Remove unused tools from unit-tests workflow for extending available disk space
Signed-off-by: Hiroshi Hatake <[email protected]>
1 parent 1b91803 commit 0c18bb9

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
@@ -74,6 +74,23 @@ jobs:
7474
permissions:
7575
contents: read
7676
steps:
77+
- name: Free disk space
78+
run: |
79+
echo "::group::Disk usage before cleanup"
80+
df -h
81+
echo "::endgroup::"
82+
83+
sudo rm -rf /usr/share/dotnet || true
84+
sudo rm -rf /usr/local/lib/android || true
85+
sudo rm -rf /opt/ghc || true
86+
sudo rm -rf /usr/lib/jvm || true
87+
88+
sudo apt-get clean || true
89+
90+
echo "::group::Disk usage after cleanup"
91+
df -h
92+
echo "::endgroup::"
93+
7794
- name: Setup environment
7895
run: |
7996
sudo apt-get update

0 commit comments

Comments
 (0)