Closed dinbtechit closed 2 years ago
I managed to get the builds passing by adding a Clean Worksapce
stage before the build starts. Looks like there are 4GB worth of libraries that I don't need.
build.yml
# Clean Workspace
- name: Clean Workspace
shell: bash
run: |
echo "Listing 100 largest packages"
dpkg-query -Wf '${Installed-Size}\t${Package}\n' | sort -n | tail -n 100
df -h
echo "Removing large packages"
sudo apt-get remove -y '^dotnet-.*'
sudo apt-get remove -y '^llvm-.*'
sudo apt-get remove -y 'php.*'
sudo apt-get remove -y '^mongodb-.*'
sudo apt-get remove -y '^mysql-.*'
sudo apt-get remove -y azure-cli google-cloud-sdk hhvm google-chrome-stable firefox powershell mono-devel libgl1-mesa-dri
sudo apt-get autoremove -y
sudo apt-get clean
df -h
echo "Removing large directories"
# deleting 15GB
rm -rf /usr/share/dotnet/
df -h
Take a look at my build.yml file: https://github.com/dinbtechit/vscode-theme/blob/0fabed73350fe48391a241e8547f331281c1152a/.github/workflows/build.yml#L37
Build GitHub Actions workflow now contains a Maximize Build Space step which frees a few GB of disk space which helps handling this issue.
Github Repo: https://github.com/dinbtechit/vscode-theme/actions/runs/2372135752
Describe the bug:
Qodana - Code Inspection fails due to No Space left on device.