31
31
echo "date=$(/bin/date -u "+%Y%V")" >> $GITHUB_OUTPUT
32
32
shell : bash
33
33
34
- - name : Cache Conda and Pip packages
34
+ - name : Cache Miniforge and Pip packages
35
35
uses : actions/cache@v4
36
36
env :
37
37
CACHE_NUMBER : 0
@@ -42,14 +42,15 @@ jobs:
42
42
key :
43
43
${{runner.os}}-condapkg-${{env.CACHE_NUMBER}}-${{steps.get-date.outputs.date}}-${{hashFiles('environment-dev.yml','conda/meta.yaml')}}
44
44
45
- - name : Cache Conda environment
45
+ - name : Cache Miniforge environment
46
46
uses : actions/cache@v4
47
- id : cache-conda -environment
47
+ id : cache-miniforge -environment
48
48
env :
49
49
CACHE_NUMBER : 0
50
50
with :
51
51
path : ${CONDA}/envs/mantidimaging-dev.cache
52
- key : ${{runner.os}}-condaenv-${{env.CACHE_NUMBER}}-${{steps.get-date.outputs.date}}-${{hashFiles('environment-dev.yml','conda/meta.yaml', 'setup.py')}}
52
+ key :
53
+ ${{runner.os}}-condaenv-${{env.CACHE_NUMBER}}-${{steps.get-date.outputs.date}}-${{hashFiles('environment-dev.yml','conda/meta.yaml', 'setup.py')}}
53
54
54
55
- name : Setup Miniforge
55
56
uses : conda-incubator/setup-miniconda@v3
@@ -60,15 +61,15 @@ jobs:
60
61
use-mamba : true
61
62
62
63
- name : Mantid Imaging developer dependencies
63
- if : steps.cache-conda -environment.outputs.cache-hit != 'true'
64
+ if : steps.cache-miniforge -environment.outputs.cache-hit != 'true'
64
65
shell : bash -l {0}
65
66
run : |
66
67
conda deactivate
67
68
python3 ./setup.py create_dev_env
68
69
cp -Ta ${CONDA}/envs/mantidimaging-dev ${CONDA}/envs/mantidimaging-dev.cache
69
70
70
71
- name : Mantid Imaging developer dependencies - from cache
71
- if : steps.cache-conda -environment.outputs.cache-hit == 'true'
72
+ if : steps.cache-miniforge -environment.outputs.cache-hit == 'true'
72
73
shell : bash -l {0}
73
74
run : |
74
75
cp -Ta ${CONDA}/envs/mantidimaging-dev.cache ${CONDA}/envs/mantidimaging-dev
@@ -145,4 +146,4 @@ jobs:
145
146
with :
146
147
label : unstable
147
148
token : ${{ secrets.ANACONDA_API_TOKEN_MANTIDIMAGING }}
148
- token-old : ${{ secrets.ANACONDA_API_TOKEN }}
149
+ token-old : ${{ secrets.ANACONDA_API_TOKEN }}
0 commit comments