Skip to content

Commit

Permalink
Update build-python.yml workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
henchaves committed Jan 28, 2025
1 parent 91222db commit ee7095b
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/build-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -319,9 +319,20 @@ jobs:
sudo swapoff -a
sudo rm -f /swapfile
sudo rm -rf /usr/local/lib/android
docker rmi $(docker image ls -aq)
# Only remove Docker images if any exist
IMAGES=$(docker image ls -aq)
if [ -n "$IMAGES" ]; then
docker rmi $IMAGES
fi
sudo apt update && sudo apt remove -y \
google-cloud-cli microsoft-edge-stable dotnet-sdk-* llvm-* google-chrome-stable temurin-*
google-cloud-cli \
microsoft-edge-stable \
dotnet-sdk-* \
llvm-* \
google-chrome-stable \
temurin-*
sudo apt autoremove -y
sudo apt autoclean -y
Expand Down

0 comments on commit ee7095b

Please sign in to comment.