Skip to content

Commit cade4a0

Browse files
committed
Make some room on runner
1 parent 8a68e84 commit cade4a0

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

.github/workflows/build-python.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,32 @@ jobs:
9393
langchain_minimal: true
9494
continue-on-error: false # https://ncorti.com/blog/howto-github-actions-build-matrix
9595
steps:
96+
- name: Check disk space
97+
run: |
98+
df -h
99+
# - name: List installed packages
100+
# run: |
101+
# dpkg-query --show --showformat='${Installed-Size}\t${Package}\n' | sort -rh | head -25 | awk '{print $1/1024, $2}'
102+
# apt list --installed | wc -l
103+
- name: Free disk space
104+
run: |
105+
sudo swapoff -a
106+
sudo rm -f /swapfile
107+
sudo rm -rf /usr/local/lib/android
108+
docker rmi $(docker image ls -aq)
109+
sudo apt update && sudo apt remove -y \
110+
google-cloud-cli microsoft-edge-stable dotnet-sdk-* llvm-* google-chrome-stable temurin-*
111+
sudo apt autoremove -y
112+
sudo apt autoclean -y
113+
114+
- name: Check new disk space
115+
run: |
116+
df -h
117+
# - name: List remaining installed packages
118+
# run: |
119+
# dpkg-query --show --showformat='${Installed-Size}\t${Package}\n' | sort -rh | head -25 | awk '{print $1/1024, $2}'
120+
# apt list --installed | wc -l
121+
96122
- name: Checkout code
97123
uses: actions/checkout@v4.1.0
98124
with:

0 commit comments

Comments
 (0)