Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 16 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
referenced:
generate-hash-step: &generate-hash-step
run:
name: Generate external data hash
command: |
cd ITK
find . -name \*.md5 -o -name \*.sha512 -print0 | xargs -d "\n" git log -n 1 | tee /home/circleci/external-data.hashable
restore-data-step: &restore-data-step
restore_cache:
keys:
- 'v1-external-data-{{ checksum "/home/circleci/external-data.hashable" }}'
- 'v1-external-data'

version: 2
jobs:
build:
Expand All @@ -19,9 +32,8 @@ jobs:
steps:
- checkout:
path : ~/ITK
- restore_cache:
keys:
- external-data
- *generate-hash-step
- *restore-data-step
- restore_cache:
keys:
- ccache-{{ arch }}-{{ .Branch }}
Expand Down Expand Up @@ -78,5 +90,5 @@ jobs:
key: 'ccache-{{ arch }}-{{ .Branch }}-{{ epoch }}'
paths: [ "/home/circleci/.ccache" ]
- save_cache:
key: 'external-data'
key: 'v1-external-data-{{ checksum "/home/circleci/external-data.hashable" }}'
paths: [ "/home/circleci/.ExternalData" ]