1
1
mirror of https://github.com/nmattia/niv.git synced 2024-11-07 22:36:53 +03:00

Merge pull request #44 from nmattia/nm-no-cache

Drop the cache
This commit is contained in:
Nicolas Mattia 2019-04-07 13:09:12 +02:00 committed by GitHub
commit af92a311c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,15 +29,6 @@ jobs:
mkdir -p $new_tmp
echo "export TMPDIR=$new_tmp" >> $BASH_ENV
# 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: |
@ -50,22 +41,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: