git.iko.soy/typeable/rollbar-hs
on master help sign in
Add the job name into the cache key

Different jobs might put different things into the cache. Better to try and support that, with some fallbacks.

commit5c5a1d9eab8da756788a95bcbb1bca2b1d0b6ad1 authorjoneshf <jones3.hardy@gmail.com> dateSun 26 Aug 2018, 12:13 (8 years ago) parent107ccff
1 file changed+3−2
.circleci/config.yml+3−2
.circleci/config.yml+3−2
@@ -5,7 +5,8 @@ build-steps: &build-steps
55 - checkout
66 - restore_cache:
77 keys:
8− - v2-nix-{{ checksum "package.yaml" }}
8+ - v2-nix-{{ .Environment.CIRCLE_JOB }}-{{ checksum "package.yaml" }}
9+ - v2-nix-{{ .Environment.CIRCLE_JOB }}-
910 - v2-nix-
1011 name: Restoring cache
1112 - run:
@@ -14,7 +15,7 @@ build-steps: &build-steps
1415 environment:
1516 CABAL_BUILD_FLAGS: --jobs=2
1617 - save_cache:
17− key: v2-nix-{{ checksum "package.yaml" }}
18+ key: v2-nix-{{ .Environment.CIRCLE_JOB }}-{{ checksum "package.yaml" }}
1819 name: Caching nix
1920 paths:
2021 - /nix