Skip to content

Commit 9c51c64

Browse files
Remove unwanted softwares to increase build space
1 parent 6283073 commit 9c51c64

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/actions/action.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,30 @@ runs:
185185
fi
186186
echo "::endgroup::"
187187
188+
- name: Remove Unwanted Softwares
189+
shell: bash
190+
run: |
191+
export DEBIAN_FRONTEND=noninteractive
192+
echo "DEBIAN_FRONTEND=noninteractive" >> "$GITHUB_ENV"
193+
df -h
194+
sudo rm -rf /usr/share/dotnet /usr/local/lib/android /opt/ghc \
195+
/usr/local/.ghcup /opt/hostedtoolcache/CodeQL /usr/local/share/powershell \
196+
/usr/share/swift || true
197+
sudo docker image prune --all --force
198+
echo "Unused directories cleared"
199+
sudo apt-get purge -y aria2 ansible azure-cli shellcheck rpm xorriso zsync \
200+
esl-erlang firefox gfortran-8 gfortran-9 google-chrome-stable google-cloud-sdk \
201+
imagemagick libmagickcore-dev libmagickwand-dev libmagic-dev ant ant-optional \
202+
kubectl mercurial apt-transport-https mono-complete libmysqlclient unixodbc-dev \
203+
yarn chrpath libssl-dev libxft-dev libfreetype6 libfreetype6-dev libfontconfig1 \
204+
libfontconfig1-dev snmp pollinate libpq-dev postgresql-client powershell ruby-full \
205+
sphinxsearch subversion mongodb-org microsoft-edge-stable || true
206+
sudo apt-get purge -y "$(dpkg-query -W -f='${binary:Package}\n' | grep -E '^mysql|^php|^dotnet' || true)" || true
207+
sudo apt-get autoremove -y
208+
sudo apt-get autoclean -y
209+
echo "Package cleanup complete"
210+
df -h
211+
188212
- name: Install Minimal Dependencies
189213
shell: bash
190214
run: |

0 commit comments

Comments
 (0)