Skip to content

Commit

Permalink
Merge pull request #323 from lorengordon/fix/runner-space
Browse files Browse the repository at this point in the history
  • Loading branch information
lorengordon authored Aug 7, 2024
2 parents 5ce8a4d + 84a9171 commit a3f9b95
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,32 @@ jobs:
MIRROR_BUCKET: p3-hashicorp-mirror
REPO_PATH: .mirror/repo
steps:
- name: Maximize build space
run: |
set -xeuo pipefail
echo "Available storage:"
sudo df -h
echo
sudo rm -rf /usr/share/dotnet
sudo rm -rf /usr/local/lib/android
sudo rm -rf /opt/ghc
sudo rm -rf /usr/local/.ghcup
sudo rm -rf /opt/hostedtoolcache/CodeQL
sudo rm -rf /usr/local/share/boost
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
sudo apt-get remove -y '^aspnetcore-.*' > /dev/null
sudo apt-get remove -y '^dotnet-.*' > /dev/null
sudo apt-get remove -y '^llvm-.*' > /dev/null
sudo apt-get remove -y 'php.*' > /dev/null
sudo apt-get remove -y '^mongodb-.*' > /dev/null
sudo apt-get remove -y '^mysql-.*' > /dev/null
sudo apt-get remove -y azure-cli google-chrome-stable firefox mono-devel libgl1-mesa-dri --fix-missing > /dev/null
sudo apt-get autoremove -y > /dev/null
sudo apt-get clean > /dev/null
sudo docker image prune --all --force > /dev/null
echo "Available storage:"
sudo df -h
echo
- name: Clone this git repository
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332

Expand Down

0 comments on commit a3f9b95

Please sign in to comment.