1
1
mirror of https://github.com/nmattia/niv.git synced 2024-10-06 12:27:35 +03:00

Drop cache

This commit is contained in:
Nicolas Mattia 2019-04-06 11:57:21 +02:00
parent 0215032662
commit 8c71dd3305

View File

@ -23,15 +23,6 @@ jobs:
echo "keep-outputs = true" | sudo tee -a /etc/nix/nix.conf
echo "keep-derivations = true" | sudo tee -a /etc/nix/nix.conf
# Builds everything from scratch on master. On a branch the branch's
# cache is used if it exists, otherwise the latest cache generated from
# master is used.
- restore_cache:
keys:
- v3-niv-empty-{{ .Branch }}-
- v3-niv-cache-{{ .Branch }}-
- v3-niv-cache-master-
- run:
name: Install Nix
command: |
@ -44,22 +35,6 @@ jobs:
name: Nix build
command: ./script/test
- save_cache:
key: v3-niv-cache-{{ .Branch }}-{{ .BuildNum }}
paths:
- /nix/store/
- run:
name: Clean up cache
shell: /bin/bash -eilo pipefail
command: |
sudo rm -rf /nix/store/
sudo mkdir -p /nix/store/
- save_cache:
key: v3-niv-empty-master-{{ .BuildNum }}
paths:
- /nix/store/
workflows:
version: 2
build: