Skip to content

Commit

Permalink
Free up space in GitHub Actions Runners for remaining jobs
Browse files Browse the repository at this point in the history
Signed-off-by: Jordan Carlin <[email protected]>
  • Loading branch information
jordancarlin authored Oct 28, 2024
1 parent bb8990c commit 058d578
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .github/workflows/nightly-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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')"
Expand Down Expand Up @@ -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 }}
Expand Down

0 comments on commit 058d578

Please sign in to comment.