Skip to content

Commit

Permalink
Remove unused tools to free up CI disk space (#1864)
Browse files Browse the repository at this point in the history
* Remove unused tools to free up CI disk space

* Use long command line options

* Reenable the swapfile in CI

It's only 512MB and seems useful https://help.ubuntu.com/community/SwapFaq#Why_do_I_need_swap.3F
  • Loading branch information
jul-sh committed Feb 3, 2021
1 parent 73bd4db commit 70f9999
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yaml
Expand Up @@ -32,13 +32,13 @@ jobs:
uses: actions/checkout@v2

# Copied from https://github.com/jens-maus/RaspberryMatic/blob/ea6b8ce0dd2d53ea88b2766ba8d7f8e1d667281f/.github/workflows/ci.yml#L34-L40
# and https://github.com/actions/virtual-environments/issues/709#issuecomment-612569242
- name: Free disk space
run: |
df --human-readable
sudo swapoff --all
sudo rm --force /swapfile
sudo apt clean
docker rmi $(docker image ls --all --quiet)
rm --recursive --force "$AGENT_TOOLSDIRECTORY"
df --human-readable
# Build Docker image, caching from the latest version from the remote repository.
Expand Down

0 comments on commit 70f9999

Please sign in to comment.