Skip to content

Commit 7a87f91

Browse files
Switch from Mambaforge to Miniforge in GitHub Actions workflow (#2344)
2 parents 2529884 + 3dcc966 commit 7a87f91

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

.github/workflows/docs.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
echo "date=$(/bin/date -u "+%Y%V")" >> $GITHUB_OUTPUT
2828
shell: bash
2929

30-
- name: Cache Mambaforge and Pip packages
30+
- name: Cache Miniforge and Pip packages
3131
uses: actions/cache@v4
3232
env:
3333
CACHE_NUMBER: 0
@@ -38,35 +38,34 @@ jobs:
3838
key:
3939
${{runner.os}}-condapkg-${{env.CACHE_NUMBER}}-${{steps.get-date.outputs.date}}-${{hashFiles('environment-dev.yml','conda/meta.yaml')}}
4040

41-
- name: Cache Mambaforge environment
41+
- name: Cache Miniforge environment
4242
uses: actions/cache@v4
43-
id: cache-mambaforge-environment
43+
id: cache-miniforge-environment
4444
env:
4545
CACHE_NUMBER: 0
4646
with:
4747
path: ${CONDA}/envs/mantidimaging-dev.cache
4848
key:
4949
${{runner.os}}-condaenv-${{env.CACHE_NUMBER}}-${{steps.get-date.outputs.date}}-${{hashFiles('environment-dev.yml','conda/meta.yaml')}}
5050

51-
- name: Setup Mambaforge
51+
- name: Setup Miniforge
5252
uses: conda-incubator/setup-miniconda@v3
5353
with:
5454
miniforge-version: latest
55-
miniforge-variant: Mambaforge
5655
activate-environment: mantidimaging-dev
5756
auto-activate-base: false
5857
use-mamba: true
5958

6059
- name: Mantid Imaging developer dependencies
61-
if: steps.cache-mambaforge-environment.outputs.cache-hit != 'true'
60+
if: steps.cache-miniforge-environment.outputs.cache-hit != 'true'
6261
shell: bash -l {0}
6362
run: |
6463
conda deactivate
6564
python3 ./setup.py create_dev_env
6665
cp -Ta ${CONDA}/envs/mantidimaging-dev ${CONDA}/envs/mantidimaging-dev.cache
6766
6867
- name: Mantid Imaging developer dependencies - from cache
69-
if: steps.cache-mambaforge-environment.outputs.cache-hit == 'true'
68+
if: steps.cache-miniforge-environment.outputs.cache-hit == 'true'
7069
shell: bash -l {0}
7170
run: |
7271
cp -Ta ${CONDA}/envs/mantidimaging-dev.cache ${CONDA}/envs/mantidimaging-dev

0 commit comments

Comments
 (0)