CircleCI: keep build cache with checksum of depend.dep

This commit is contained in:
Alam Ed Arias 2017-03-24 09:12:00 -04:00
parent 03ecb0d164
commit 52a79754d3

View file

@ -42,15 +42,12 @@ jobs:
paths: paths:
- /var/cache/apt/archives - /var/cache/apt/archives
- checkout - checkout
- run:
name: Clean build
command: make -C src LINUX=1 clean
- restore_cache: - restore_cache:
keys: keys:
- v1-SRB2-{{ .Branch }} - v1-SRB2-{{ .Branch }}-{{ checksum "objs/Linux/SDL/Release/depend.dep" }}
- run:
name: Setup cache
command: mkdir -p /root/srb2_cache
#- run:
# name: Download SRB2 Resources
# command: wget --verbose --server-response -c http://rosenthalcastle.org/srb2/SRB2-v2115-assets-2.7z -O /root/srb2_cache/SRB2-v2115-assets-2.7z
- run: - run:
name: Compile name: Compile
command: make -C src LINUX=1 ERRORMODE=1 -k command: make -C src LINUX=1 ERRORMODE=1 -k
@ -58,10 +55,9 @@ jobs:
path: /root/SRB2/bin/Linux/Release/ path: /root/SRB2/bin/Linux/Release/
destination: bin destination: bin
- save_cache: - save_cache:
key: v1-SRB2-{{ .Branch }} key: v1-SRB2-{{ .Branch }}-{{ checksum "objs/Linux/SDL/Release/depend.dep" }}
paths: paths:
- /root/.ccache - /root/.ccache
- /root/srb2_cache