From 69477d56007a3b32d099a2ffc1429f1794dd8f29 Mon Sep 17 00:00:00 2001
From: Jean-Paul Calderone <exarkun@twistedmatrix.com>
Date: Thu, 13 May 2021 10:14:46 -0400
Subject: [PATCH] try having a more specific cache containing the rest of the
 deps

---
 .circleci/config.yml | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/.circleci/config.yml b/.circleci/config.yml
index 560ec0f..4a8aa0f 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -196,7 +196,8 @@ jobs:
             # If nixpkgs changes then potentially a lot of cached packages for
             # the base system will be invalidated so we may as well drop them
             # and make a new cache with the new packages.
-            - zkapauthorizer-nix-store-v4-{{ checksum "nixpkgs.rev" }}
+            - zkapauthorizer-nix-store-v4-{{ checksum "nixpkgs.rev" }}-ourdeps
+            - zkapauthorizer-nix-store-v4-{{ checksum "nixpkgs.rev" }}-
             - zkapauthorizer-nix-store-v4-
 
       - run:
@@ -225,7 +226,13 @@ jobs:
             #
             # Further, we want the "doc" output built as well because that's
             # where the coverage data ends up.
-            nix-build --cores 8 --argstr hypothesisProfile ci --arg collectCoverage true --attr doc
+            nix-build --jobs 4 --cores 4 --argstr hypothesisProfile ci --arg collectCoverage true --attr doc
+
+      - save_cache:
+          name: "Cache Nix Store Paths"
+          key: zkapauthorizer-nix-store-v4-{{ checksum "nixpkgs.rev" }}-ourdeps
+          paths:
+            - "/nix"
 
       - run:
           name: "Report Coverage"
-- 
GitLab