Skip to content

Commit 6905376

Browse files
author
Tim Middleton
committed
Further CI/CD debugging
1 parent 7855e99 commit 6905376

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/build.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,28 @@ jobs:
3333
with:
3434
fetch-depth: 0
3535

36+
# This step will free up disc space on the runner by removing
37+
# lots of things that we do not need.
38+
- name: disc
39+
shell: bash
40+
run: |
41+
echo "Listing 100 largest packages"
42+
dpkg-query -Wf '${Installed-Size}\t${Package}\n' | sort -n | tail -n 100
43+
df -h
44+
echo "Removing large packages"
45+
sudo apt-get remove -y '^dotnet-.*' || true
46+
sudo apt-get remove -y '^llvm-.*' || true
47+
sudo apt-get remove -y 'monodoc-http' || true
48+
sudo apt-get remove -y 'php.*' || true
49+
sudo apt-get remove -y azure-cli google-cloud-sdk hhvm google-chrome-stable firefox powershell mono-devel || true
50+
sudo apt-get autoremove -y || true
51+
sudo apt-get clean
52+
df -h
53+
echo "Removing large directories"
54+
rm -rf /usr/share/dotnet/
55+
sudo rm -rf /usr/local/lib/android
56+
df -h
57+
3658
- name: Get Docker Images
3759
shell: bash
3860
run: |

0 commit comments

Comments
 (0)