diff --git a/.circleci/config.yml b/.circleci/config.yml index 99c433d..dc426ab 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -20,6 +20,13 @@ jobs: steps: - checkout + # Download and cache dependencies + - restore_cache: + keys: + - v1-dependencies-{{ checksum ".circleci/config.yml" }} + # fallback to using the latest cache if no exact match is found + - v1-dependencies- + - run: name: install conda command: | @@ -35,6 +42,11 @@ jobs: source ~/miniconda3/bin/activate root conda create -n wrf-python -c conda-forge gcc setuptools python numpy wrapt xarray netcdf4 + - save_cache: + paths: + - ~/miniconda3 + key: v1-dependencies-{{ checksum ".circleci/config.yml" }} + - run: name: build wrf-python command: |