Skip to content

Commit

Permalink
Add step to reduce disk space when building docs
Browse files Browse the repository at this point in the history
  • Loading branch information
bloebp committed Oct 4, 2024
1 parent 69075be commit fbb4132
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 9 deletions.
23 changes: 19 additions & 4 deletions .github/workflows/docs-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,27 @@ jobs:
version: "14.0"
directory: ${{ runner.temp }}/llvm

# Following https://github.com/marketplace/actions/free-disk-space-ubuntu
- name: Some cleanup for more disk space
run: |
rm -rf /usr/share/dotnet
rm -rf "$AGENT_TOOLSDIRECTORY"
apt-get autoremove -y
apt-get clean
dh -h
rm -rf "$AGENT_TOOLSDIRECTORY" || true
rm -rf /usr/local/lib/android || true
rm -rf /opt/ghc || true
rm -rf /usr/local/.ghcup || true
rm -rf "$AGENT_TOOLSDIRECTORY" || true
swapoff -a || true
rm -f /mnt/swapfile || true
apt-get remove -y '^aspnetcore-.*' || true
apt-get remove -y '^dotnet-.*' --fix-missing || true
apt-get remove -y 'php.*' --fix-missing || true
apt-get remove -y '^mongodb-.*' --fix-missing || true
apt-get remove -y '^mysql-.*' --fix-missing || true
apt-get remove -y azure-cli google-chrome-stable firefox powershell mono-devel libgl1-mesa-dri --fix-missing || true
apt-get remove -y google-cloud-sdk --fix-missing || true
apt-get remove -y google-cloud-cli --fix-missing || true
apt-get autoremove -y || true
apt-get clean || true
df -h
- name: Install Python Dependencies
Expand Down
25 changes: 20 additions & 5 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,27 @@ jobs:
version: "14.0"
directory: ${{ runner.temp }}/llvm

# Following https://github.com/marketplace/actions/free-disk-space-ubuntu
- name: Some cleanup for more disk space
run: |
rm -rf /usr/share/dotnet
rm -rf "$AGENT_TOOLSDIRECTORY"
apt-get autoremove -y
apt-get clean
run: |
dh -h
rm -rf "$AGENT_TOOLSDIRECTORY" || true
rm -rf /usr/local/lib/android || true
rm -rf /opt/ghc || true
rm -rf /usr/local/.ghcup || true
rm -rf "$AGENT_TOOLSDIRECTORY" || true
swapoff -a || true
rm -f /mnt/swapfile || true
apt-get remove -y '^aspnetcore-.*' || true
apt-get remove -y '^dotnet-.*' --fix-missing || true
apt-get remove -y 'php.*' --fix-missing || true
apt-get remove -y '^mongodb-.*' --fix-missing || true
apt-get remove -y '^mysql-.*' --fix-missing || true
apt-get remove -y azure-cli google-chrome-stable firefox powershell mono-devel libgl1-mesa-dri --fix-missing || true
apt-get remove -y google-cloud-sdk --fix-missing || true
apt-get remove -y google-cloud-cli --fix-missing || true
apt-get autoremove -y || true
apt-get clean || true
df -h
- name: Install Python Dependencies
Expand Down

0 comments on commit fbb4132

Please sign in to comment.