Skip to content
This repository has been archived by the owner on May 15, 2024. It is now read-only.

Commit

Permalink
ci: remove needless packages and tools
Browse files Browse the repository at this point in the history
  • Loading branch information
cowboy-bebug committed Feb 15, 2023
1 parent d9260c8 commit dcd8497
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/scripts/free_disk_space.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#!/usr/bin/env bash

echo "Removing large packages"
sudo apt-get remove -y '^dotnet-.*'
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

echo "Removing large directories"
sudo rm -rf /usr/share/dotnet/
sudo rm -rf /usr/local/graalvm/
sudo rm -rf /usr/local/.ghcup/
sudo rm -rf /usr/local/share/powershell
sudo rm -rf /usr/local/share/chromium
sudo rm -rf /usr/local/lib/android
sudo rm -rf /usr/local/lib/node_modules
2 changes: 2 additions & 0 deletions .github/workflows/check-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ jobs:
runs-on: ubuntu-latest
continue-on-error: false
steps:
- run: ./.github/scripts/free_disk_space.sh
- run: sudo apt-get install -y protobuf-compiler
- uses: actions/checkout@v3
- uses: actions/cache@v3
Expand All @@ -60,6 +61,7 @@ jobs:
runs-on: ubuntu-latest
continue-on-error: false
steps:
- run: ./.github/scripts/free_disk_space.sh
- run: sudo apt-get install -y protobuf-compiler
- uses: actions/checkout@v3
- uses: actions/cache@v3
Expand Down

0 comments on commit dcd8497

Please sign in to comment.