Skip to content

Commit

Permalink
ci: remove free space code
Browse files Browse the repository at this point in the history
  • Loading branch information
Wenzel committed Apr 22, 2024
1 parent 0d95fac commit 686cfbe
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions .github/workflows/build-deb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,29 +36,6 @@ jobs:
ref: ${{ env.ref }}
path: sources

# https://github.com/apache/flink/blob/02d30ace69dc18555a5085eccf70ee884e73a16e/tools/azure-pipelines/free_disk_space.sh
- name: Free some 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 'php.*'
sudo apt-get remove -y azure-cli google-cloud-sdk google-chrome-stable firefox powershell mono-devel
sudo apt-get autoremove -y
sudo apt-get clean
df -h
echo "Removing large directories"
# deleting 15GB
sudo rm -rf /usr/share/dotnet/
df -h
- name: Install ccache
run: sudo apt-get install -y ccache

Expand Down

0 comments on commit 686cfbe

Please sign in to comment.