From 92b3a3b0a95da696b1f39dced0f2ac01281df07c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Pacana?= Date: Thu, 25 Jun 2026 15:56:26 +0200 Subject: [PATCH] Reapply "Cache the Nix store in GitHub Actions" This reverts commit 7314af0a2ec8cf53c1520eb1fe346e23f09320ec. --- .github/workflows/main.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b69cad9..d4469aa 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -27,6 +27,19 @@ jobs: with: extra_nix_config: | accept-flake-config = true + keep-outputs = true + keep-env-derivations = true + - name: Cache Nix store + uses: nix-community/cache-nix-action@v7 + with: + primary-key: nix-${{ runner.os }}-${{ hashFiles('**/*.nix', 'devenv.lock', 'devenv.yaml') }} + restore-prefixes-first-match: nix-${{ runner.os }}- + gc-max-store-size-linux: 1G + purge: true + purge-prefixes: nix-${{ runner.os }}- + purge-created: 0 + purge-last-accessed: P1DT12H + purge-primary-key: never - name: Set up cachix uses: cachix/cachix-action@v16 with: -- 2.51.2