Skip to content

Commit

Permalink
remove a whole bunch of stuff in the build environments on GitHub bef…
Browse files Browse the repository at this point in the history
…ore building to free up space
  • Loading branch information
mmguero committed Jun 21, 2024
1 parent c94d2da commit a963e5c
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 10 deletions.
29 changes: 24 additions & 5 deletions .github/workflows/monkeyplug-build-push-vosk-ghcr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,30 @@ jobs:
shell: bash
id: remove_useless_stuff
run: |
sudo rm -rf /usr/share/dotnet \
/usr/local/lib/android \
/opt/ghc \
/usr/local/share/boost \
"$AGENT_TOOLSDIRECTORY" || true
sudo docker rmi $(docker image ls -aq) >/dev/null 2>&1 || true
sudo rm -rf \
"$AGENT_TOOLSDIRECTORY" \
/opt/ghc \
/usr/lib/jvm \
/usr/local/.ghcup \
/usr/local/lib/android \
/usr/local/share/powershell \
/usr/share/dotnet \
/usr/share/swift >/dev/null 2>&1 || true
sudo env DEBIAN_FRONTEND=noninteractive apt-get -q -y update >/dev/null 2>&1
sudo env DEBIAN_FRONTEND=noninteractive apt-get -q -y --purge remove \
azure-cli \
dotnet* \
firefox \
google-chrome-stable \
google-cloud-cli \
microsoft-edge-stable \
mono-* \
mysql* \
postgresql* \
powershell \
temurin* >/dev/null 2>&1 || true
sudo env DEBIAN_FRONTEND=noninteractive apt-get -q -y --purge autoremove >/dev/null 2>&1 || true
-
name: ghcr.io login
id: ghcr-io-login
Expand Down
29 changes: 24 additions & 5 deletions .github/workflows/monkeyplug-build-push-whisper-ghcr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,30 @@ jobs:
shell: bash
id: remove_useless_stuff
run: |
sudo rm -rf /usr/share/dotnet \
/usr/local/lib/android \
/opt/ghc \
/usr/local/share/boost \
"$AGENT_TOOLSDIRECTORY" || true
sudo docker rmi $(docker image ls -aq) >/dev/null 2>&1 || true
sudo rm -rf \
"$AGENT_TOOLSDIRECTORY" \
/opt/ghc \
/usr/lib/jvm \
/usr/local/.ghcup \
/usr/local/lib/android \
/usr/local/share/powershell \
/usr/share/dotnet \
/usr/share/swift >/dev/null 2>&1 || true
sudo env DEBIAN_FRONTEND=noninteractive apt-get -q -y update >/dev/null 2>&1
sudo env DEBIAN_FRONTEND=noninteractive apt-get -q -y --purge remove \
azure-cli \
dotnet* \
firefox \
google-chrome-stable \
google-cloud-cli \
microsoft-edge-stable \
mono-* \
mysql* \
postgresql* \
powershell \
temurin* >/dev/null 2>&1 || true
sudo env DEBIAN_FRONTEND=noninteractive apt-get -q -y --purge autoremove >/dev/null 2>&1 || true
-
name: ghcr.io login
id: ghcr-io-login
Expand Down

0 comments on commit a963e5c

Please sign in to comment.