mirror of
https://github.com/nmattia/niv.git
synced 2024-11-22 22:10:46 +03:00
Drop the cache
Right now warming up and saving the cache takes more time than the build itself.
This commit is contained in:
parent
130ac83460
commit
8b1b890b43
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user