From 9a1251be4a53f9b4d5fbc70b94726cd8b5e0a778 Mon Sep 17 00:00:00 2001 From: Guillaume Lemaitre Date: Tue, 7 Dec 2021 12:23:28 +0100 Subject: [PATCH] CI cache data directory --- build_tools/azure/posix.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/build_tools/azure/posix.yml b/build_tools/azure/posix.yml index 8b4f13836..c5c12e450 100644 --- a/build_tools/azure/posix.yml +++ b/build_tools/azure/posix.yml @@ -20,6 +20,7 @@ jobs: OPENBLAS_NUM_THREADS: '2' CPU_COUNT: '2' SKLEARN_SKIP_NETWORK_TESTS: '1' + SKLEARN_DATA_DIR: $(System.DefaultWorkingDirectory)/scikit_learn_data CCACHE_DIR: $(Pipeline.Workspace)/ccache CCACHE_COMPRESS: '1' NUMPY_VERSION: 'latest' @@ -49,6 +50,12 @@ jobs: - bash: sudo chown -R $USER $CONDA displayName: Take ownership of conda installation condition: startsWith(variables['DISTRIB'], 'conda') + - task: Cache@2 + inputs: + key: '"$(Agent.JobName)"' + path: $(SKLEARN_DATA_DIR) + displayName: Dataset caching + continueOnError: true - task: Cache@2 inputs: key: '"$(Agent.JobName)"'