Skip to content

Commit

Permalink
free disk space
Browse files Browse the repository at this point in the history
  • Loading branch information
tvdboom committed Mar 7, 2024
1 parent ea7fda3 commit 8c49c95
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,25 @@ jobs:
examples-tests:
runs-on: ubuntu-latest
steps:
- name: Free disk space
run: |
echo "=============================================="
echo "Freeing up disk space on CI system"
echo "=============================================="
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 azure-cli google-cloud-cli google-chrome-stable firefox mono-devel
sudo apt-get autoremove -y
sudo apt-get clean
df -h
echo "Removing large directories"
# Deleting ~15GB
rm -rf /usr/share/dotnet/
df -h
- name: Check out source repository
uses: actions/checkout@v3
- name: Set up Python environment
Expand Down

0 comments on commit 8c49c95

Please sign in to comment.