From f549cb5dabe2341a11ee94ef2eca100ae070f6af Mon Sep 17 00:00:00 2001 From: Jose Storopoli Date: Tue, 19 Mar 2024 05:35:12 -0300 Subject: [PATCH] ci: need moar disk space --- .github/workflows/Nix.yml | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/.github/workflows/Nix.yml b/.github/workflows/Nix.yml index a5b5798..cf14dab 100644 --- a/.github/workflows/Nix.yml +++ b/.github/workflows/Nix.yml @@ -34,7 +34,38 @@ jobs: os-name: "macOS Apple Silicon" flake-attr: darwinConfigurations.macbook.config.system.build.toplevel steps: - - uses: actions/checkout@v4 + - name: "Checkout Repo" + uses: actions/checkout@v4 + + - name: Free Disk Space (Ubuntu) + uses: jlumbroso/free-disk-space@main + with: + # this might remove tools that are actually needed, + # when set to "true" but frees about 6 GB + tool-cache: true + + # all of these default to true, but feel free to set to + # "false" if necessary for your workflow + android: true + dotnet: true + haskell: true + large-packages: true + swap-storage: true + + - name: "Create Dir for Mounting moar Disk Space" + run: | + sudo mkdir /nix + + - name: "Maximize Disk Space" + uses: easimon/maximize-build-space@v8 + with: + build-mount-path: /nix + remove-dotnet: "true" + remove-android: "true" + remove-haskell: "true" + temp-reserve-mb: "100" + swap-size-mb: "4096" + root-reserve-mb: "1024" - name: "Install Nix" uses: DeterminateSystems/nix-installer-action@v10