]> https://gitweb.dealii.org/ - dealii.git/commitdiff
GitHub Cuda CI: Remove large packages
authorDaniel Arndt <arndtd@ornl.gov>
Tue, 6 Aug 2024 15:35:55 +0000 (11:35 -0400)
committerDaniel Arndt <arndtd@ornl.gov>
Tue, 6 Aug 2024 15:36:23 +0000 (11:36 -0400)
.github/workflows/linux.yml

index 61ea8f1a12d817594515438b645a11244ef37eed..eb88426b2f977319aac27f3376ac0c4f56dbbb29 100644 (file)
@@ -315,6 +315,29 @@ jobs:
             numdiff \
             openmpi-bin \
             libboost-all-dev
+    # https://github.com/apache/flink/blob/master/tools/azure-pipelines/free_disk_space.sh
+    - name: remove unused large packages
+      run : |
+        echo "=============================================================================="
+        echo "Freeing up disk space on CI system"
+        echo "=============================================================================="
+
+        echo "Listing 100 largest packages"
+        dpkg-query -Wf '${Installed-Size}\t${Package}\n' | sort -n | tail -n 100
+        df -h
+        echo "Removing large packages"
+        sudo apt-get remove -y '^ghc-8.*'
+        sudo apt-get remove -y '^dotnet-.*'
+        sudo apt-get remove -y '^llvm-.*'
+        sudo apt-get remove -y 'php.*'
+        sudo apt-get remove -y azure-cli google-cloud-sdk hhvm google-chrome-stable firefox powershell mono-devel
+        sudo apt-get autoremove -y
+        sudo apt-get clean
+        df -h
+        echo "Removing large directories"
+        # deleting 15GB
+        rm -rf /usr/share/dotnet/
+        df -h
     - uses: lukka/get-cmake@v3.27.9
     - name: info
       run: |

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.