Skip to content

Commit

Permalink
Free up some disk space on the runner before doing a release (#176)
Browse files Browse the repository at this point in the history
  • Loading branch information
nineinchnick authored Sep 7, 2023
1 parent c104b3b commit 43f5a64
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,20 @@ jobs:
contents: write
packages: write
steps:
- name: Free up disk space
run: |
sudo rm -rf \
/usr/share/dotnet \
/opt/ghc \
/usr/local/share/boost \
"$AGENT_TOOLSDIRECTORY" || true
docker rmi $(docker image ls -aq) >/dev/null 2>&1 || true
- name: Report disk space usage
run: |
sudo dpkg-query -Wf '${Installed-Size}\t${Package}\n' | sort -nr | head
df -h .
sudo du -hx -d 4 --threshold=1G /usr/ | sort -hr | head
- uses: actions/checkout@v3
with:
fetch-depth: 0 # checkout tags so version in Manifest is set properly
Expand Down

0 comments on commit 43f5a64

Please sign in to comment.