From 058d5784e5f1087d4161d0674e7f4b1c223f5421 Mon Sep 17 00:00:00 2001 From: Jordan Carlin Date: Mon, 28 Oct 2024 08:25:17 -0700 Subject: [PATCH] Free up space in GitHub Actions Runners for remaining jobs Signed-off-by: Jordan Carlin --- .github/workflows/nightly-release.yaml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/.github/workflows/nightly-release.yaml b/.github/workflows/nightly-release.yaml index 5380d97e399..5f97d9b2860 100644 --- a/.github/workflows/nightly-release.yaml +++ b/.github/workflows/nightly-release.yaml @@ -128,7 +128,14 @@ jobs: asset_matrix: ${{ steps.asset_names.outputs.asset_matrix }} datestamp: ${{ env.DATESTAMP }} steps: - + - name: Remove unneeded frameworks to recover disk space + run: | + echo "-- Before --" + df -h + sudo rm -rf /usr/share/dotnet + sudo rm -rf /usr/local/lib/android + echo "-- After --" + df -h - name: Run Configuration Commands run: | DATESTAMP="$(date --utc '+%Y.%m.%d')" @@ -200,6 +207,15 @@ jobs: name: upload ${{ matrix.artifact }} steps: + - name: Remove unneeded frameworks to recover disk space + run: | + echo "-- Before --" + df -h + sudo rm -rf /usr/share/dotnet + sudo rm -rf /usr/local/lib/android + echo "-- After --" + df -h + - uses: actions/download-artifact@v4 with: name: ${{ matrix.artifact }}