Fix cleanup resources in the builder CI
@@ -37,9 +37,20 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v2
- - name: Info
+ - name: Cleanup
run: |
ls -lart
+ echo "Initial status:"
+ df -h
+
+ echo "Cleaning up resources:"
+ sudo swapoff -a
+ sudo rm -f /swapfile
+ sudo apt clean
+ docker rmi $(docker image ls -aq)
+
+ echo "Final status:"
+ df -h
- name: Set up JDK 11
uses: joschi/setup-jdk@v1
with:
