File tree Expand file tree Collapse file tree 2 files changed +22
-2
lines changed Expand file tree Collapse file tree 2 files changed +22
-2
lines changed Original file line number Diff line number Diff line change @@ -513,12 +513,17 @@ jobs:
513
513
name : Generate cache key
514
514
# This will refresh cache on Sundays, nightly build should generate new cache.
515
515
command : echo "$(date +"%Y-%U")" > .circleci-weekly
516
+ - restore_cache :
517
+
518
+ keys :
519
+ - env-v3-linux-{{ arch }}-py<< parameters.python_version >>-{{ checksum ".circleci/unittest/linux/scripts/environment.yml" }}-{{ checksum ".circleci-weekly" }}
520
+
516
521
- run :
517
522
name : Setup
518
523
command : docker run -e PYTHON_VERSION -t --gpus all -v $PWD:$PWD -w $PWD "${image_name}" .circleci/unittest/linux/scripts/setup_env.sh
519
524
- save_cache :
520
525
521
- key : env-v2 -linux-{{ arch }}-py<< parameters.python_version >>-{{ checksum ".circleci/unittest/linux/scripts/environment.yml" }}-{{ checksum ".circleci-weekly" }}
526
+ key : env-v3 -linux-{{ arch }}-py<< parameters.python_version >>-{{ checksum ".circleci/unittest/linux/scripts/environment.yml" }}-{{ checksum ".circleci-weekly" }}
522
527
523
528
paths :
524
529
- conda
@@ -587,6 +592,11 @@ jobs:
587
592
name : Generate cache key
588
593
# This will refresh cache on Sundays, nightly build should generate new cache.
589
594
command : echo "$(date +"%Y-%U")" > .circleci-weekly
595
+ - restore_cache :
596
+
597
+ keys :
598
+ - env-v1-windows-{{ arch }}-py<< parameters.python_version >>-{{ checksum ".circleci/unittest/windows/scripts/environment.yml" }}-{{ checksum ".circleci-weekly" }}
599
+
590
600
- run :
591
601
name : Setup
592
602
command : .circleci/unittest/windows/scripts/setup_env.sh
Original file line number Diff line number Diff line change @@ -513,12 +513,17 @@ jobs:
513
513
name: Generate cache key
514
514
# This will refresh cache on Sundays, nightly build should generate new cache.
515
515
command: echo "$(date +"%Y-%U")" > .circleci-weekly
516
+ - restore_cache:
517
+ {% raw %}
518
+ keys:
519
+ - env-v3-linux-{{ arch }}-py<< parameters.python_version >>-{{ checksum ".circleci/unittest/linux/scripts/environment.yml" }}-{{ checksum ".circleci-weekly" }}
520
+ {% endraw %}
516
521
- run:
517
522
name: Setup
518
523
command: docker run -e PYTHON_VERSION -t --gpus all -v $PWD:$PWD -w $PWD "${image_name}" .circleci/unittest/linux/scripts/setup_env.sh
519
524
- save_cache:
520
525
{% raw %}
521
- key: env-v2 -linux-{{ arch }}-py<< parameters.python_version >>-{{ checksum ".circleci/unittest/linux/scripts/environment.yml" }}-{{ checksum ".circleci-weekly" }}
526
+ key: env-v3 -linux-{{ arch }}-py<< parameters.python_version >>-{{ checksum ".circleci/unittest/linux/scripts/environment.yml" }}-{{ checksum ".circleci-weekly" }}
522
527
{% endraw %}
523
528
paths:
524
529
- conda
@@ -587,6 +592,11 @@ jobs:
587
592
name: Generate cache key
588
593
# This will refresh cache on Sundays, nightly build should generate new cache.
589
594
command: echo "$(date +"%Y-%U")" > .circleci-weekly
595
+ - restore_cache:
596
+ {% raw %}
597
+ keys:
598
+ - env-v1-windows-{{ arch }}-py<< parameters.python_version >>-{{ checksum ".circleci/unittest/windows/scripts/environment.yml" }}-{{ checksum ".circleci-weekly" }}
599
+ {% endraw %}
590
600
- run:
591
601
name: Setup
592
602
command: .circleci/unittest/windows/scripts/setup_env.sh
You can’t perform that action at this time.
0 commit comments