From 900518b44b8923cd42f296c8e6ec422d882a2f9c Mon Sep 17 00:00:00 2001 From: Declan Tsien Date: Tue, 13 Feb 2024 09:51:38 +0800 Subject: [PATCH] Frees up disk space on GitHub Ubuntu runners --- .github/actions/free-disk-space/action.yml | 19 +++++++++++++++++++ .github/workflows/checks.yaml | 1 + 2 files changed, 20 insertions(+) create mode 100644 .github/actions/free-disk-space/action.yml diff --git a/.github/actions/free-disk-space/action.yml b/.github/actions/free-disk-space/action.yml new file mode 100644 index 00000000000..66052cbafc0 --- /dev/null +++ b/.github/actions/free-disk-space/action.yml @@ -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 diff --git a/.github/workflows/checks.yaml b/.github/workflows/checks.yaml index 7ca13b5c187..2263b82012e 100644 --- a/.github/workflows/checks.yaml +++ b/.github/workflows/checks.yaml @@ -14,6 +14,7 @@ jobs: steps: - uses: actions/checkout@v4.1.1 + - uses: ./.github/actions/free-disk-space - uses: cachix/install-nix-action@v24 - name: Nix Flake Check