From ed53272508c9e2681421e89ae9d8cafbf9a54eee Mon Sep 17 00:00:00 2001 From: Michael Duong Date: Mon, 12 Jan 2026 18:55:33 +0000 Subject: [PATCH] remove unneeded files --- .github/workflows/Deploy.yml | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/.github/workflows/Deploy.yml b/.github/workflows/Deploy.yml index f840122..751c6a6 100644 --- a/.github/workflows/Deploy.yml +++ b/.github/workflows/Deploy.yml @@ -22,6 +22,24 @@ jobs: - name: Checkout code uses: actions/checkout@v3 + - name: Clean Up Disk Space + if: runner.os == 'Linux' + run: | + # Space usage before cleanup + df -h / + + # Remove unused tool caches (comment any required ones with #) + sudo rm -rf /usr/lib/jvm + sudo rm -rf /usr/local/.ghcup + sudo rm -rf /usr/local/lib/android + sudo rm -rf /usr/local/share/powershell + sudo rm -rf /usr/share/dotnet + sudo rm -rf /usr/share/swift + sudo rm -rf "$AGENT_TOOLSDIRECTORY" + + # Verify gains + df -h / + - name: Set up Python uses: actions/setup-python@v2 with: @@ -95,12 +113,6 @@ jobs: aws-secret-access-key: ${{ secrets.PROD_AWS_SECRET_ACCESS_KEY }} aws-region: eu-west-2 - - name: Check Disk Usage - run: | - df -h / - du -sh /* 2>/dev/null | sort -hr | head -10 - uname -m # Bonus: Confirms x64 vs. aarch64 - - name: DVC Pull run: | cd modules/ml-pipeline/src/pipeline