Skip to content

Commit

Permalink
circleci: cache based on OS/CPU architecture
Browse files Browse the repository at this point in the history
  • Loading branch information
Jasha10 authored Jun 23, 2024
1 parent be2261a commit f1863ec
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ commands:
steps:
- checkout
- restore_cache:
key: -<< pipeline.parameters.cache_key_version >>-macos-sys-{{ .Branch }}-<< parameters.py_version >>
key: -<< pipeline.parameters.cache_key_version >>-macos-sys-{{ arch }}-{{ .Branch }}-<< parameters.py_version >>
- run:
name: Preparing environment - Conda
command: |
Expand Down Expand Up @@ -63,7 +63,7 @@ commands:
conda create -n hydra python=<< parameters.py_version >> -yqc conda-forge
conda run -n hydra pip install nox --progress-bar off
- save_cache:
key: -<< pipeline.parameters.cache_key_version >>-macos-sys-{{ .Branch }}-<< parameters.py_version >>
key: -<< pipeline.parameters.cache_key_version >>-macos-sys-{{ arch }}-{{ .Branch }}-<< parameters.py_version >>
paths:
- ~/miniconda3
- ~/Library/Caches/Homebrew
Expand Down Expand Up @@ -101,7 +101,7 @@ commands:
steps:
- checkout
- restore_cache:
key: -<< pipeline.parameters.cache_key_version >>-win-sys-{{ .Branch }}-<< parameters.py_version >>
key: -<< pipeline.parameters.cache_key_version >>-win-sys-{{ arch }}-{{ .Branch }}-<< parameters.py_version >>
- run:
name: Preparing environment - system
no_output_timeout: 20m
Expand All @@ -116,7 +116,7 @@ commands:
conda activate hydra
pip install nox dataclasses --progress-bar off
- save_cache:
key: -<< pipeline.parameters.cache_key_version >>-win-sys-{{ .Branch }}-<< parameters.py_version >>
key: -<< pipeline.parameters.cache_key_version >>-win-sys-{{ arch }}-{{ .Branch }}-<< parameters.py_version >>
paths:
- C:\tools\miniconda3

Expand Down

0 comments on commit f1863ec

Please sign in to comment.