From fe098b1a7d386052666502b2d23e8bd8922f2907 Mon Sep 17 00:00:00 2001 From: Jean-Paul Calderone <exarkun@twistedmatrix.com> Date: Tue, 15 Jun 2021 07:41:03 -0400 Subject: [PATCH] Try to cache some more of the intermediaries --- .circleci/config.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 049aaf3..df8306a 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -159,6 +159,7 @@ jobs: command: | nix-env -iA nixpkgs.cachix cachix use "${CACHIX_NAME}" + nix path-info --all > /tmp/store-path-pre-build - "checkout" @@ -178,8 +179,14 @@ jobs: nix-build \ --argstr hypothesisProfile ci \ --arg collectCoverage true \ - --attr doc | - cachix push "${CACHIX_NAME}" + --attr doc + + - run: + name: "Push to Cachix" + when: "always" + command: | + # https://docs.cachix.org/continuous-integration-setup/circleci.html + bash -c "comm -13 <(sort /tmp/store-path-pre-build | grep -v '\.drv$') <(nix path-info --all | grep -v '\.drv$' | sort) | cachix push $CACHIX_NAME" - run: name: "Report Coverage" -- GitLab