Skip to content

Commit

Permalink
Frees up disk space on GitHub Ubuntu runners
Browse files Browse the repository at this point in the history
  • Loading branch information
declantsien committed Feb 13, 2024
1 parent 171c217 commit 900518b
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/actions/free-disk-space/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# this name is currently not visible on GitHub due to https://github.com/actions/runner/issues/1877
name: "Free disk space"
description: "Frees up disk space on GitHub Ubuntu runners"
runs:
using: "composite"
steps:
- uses: jlumbroso/free-disk-space@main
with:

# These 5 options give back ~32Gb. If that's not enough, the remaining flags can be set to `true` at the expense
# of this action taking longer to finish
android: true
dotnet: true
haskell: true
docker-images: true
swap-storage: true

large-packages: false
tool-cache: false
1 change: 1 addition & 0 deletions .github/workflows/checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ jobs:

steps:
- uses: actions/[email protected]
- uses: ./.github/actions/free-disk-space
- uses: cachix/install-nix-action@v24

- name: Nix Flake Check
Expand Down

0 comments on commit 900518b

Please sign in to comment.