Skip to content
This repository was archived by the owner on Feb 6, 2024. It is now read-only.

Commit 041af52

Browse files
committed
handler: cache CI builds
1 parent 1a600a5 commit 041af52

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

.circleci/config.yml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,21 @@ jobs:
2020
2121
# Enable sandbox
2222
echo "build-use-sandbox = true" | sudo tee -a /etc/nix/nix.conf
23-
echo "substituters = https://cache.nixos.org https://static-haskell-nix.cachix.org" \
23+
echo "substituters = https://cache.nixos.org https://static-haskell-nix.cachix.org https://deckgo.cachix.org" \
2424
| sudo tee -a /etc/nix/nix.conf
25-
echo "trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= static-haskell-nix.cachix.org-1:Q17HawmAwaM1/BfIxaEDKAxwTOyRVhPG5Ji9K3+FvUU=" \
25+
echo "trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= static-haskell-nix.cachix.org-1:Q17HawmAwaM1/BfIxaEDKAxwTOyRVhPG5Ji9K3+FvUU= deckgo.cachix.org-1:Kx6Rm054j44GugSRodI2R8T7tAr2u63gKbcCQ9wgaUk=" \
2626
| sudo tee -a /etc/nix/nix.conf
2727
28+
- run:
29+
name: Install cachix
30+
command: |
31+
nix-env -iA cachix -f https://cachix.org/api/v1/install
2832
29-
30-
#path: ~/deckdeckgo
33+
- run:
34+
name: Run cachix
35+
command: |
36+
cachix push deckgo --watch-store
37+
background: true
3138

3239
- run:
3340
name: Nix build
@@ -40,4 +47,5 @@ workflows:
4047
version: 2
4148
build:
4249
jobs:
43-
- build
50+
- build:
51+
context: cachix

0 commit comments

Comments
 (0)