Skip to content

Commit f24b031

Browse files
authored
circleci: update miniforge setup (#48)
+ `.circleci/config.yml`: replace `mamba init bash` with `source conda/mamba.sh`, as suggested by its GitHub repo readme at https://github.com/conda-forge/miniforge?tab=readme-ov-file#as-part-of-a-ci-pipeline, to fix the current circle CI environment setup error.
1 parent 6b01c39 commit f24b031

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.circleci/config.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,13 @@ jobs:
3838
apt update
3939
apt-get update --yes && apt-get upgrade --yes
4040
apt-get install --yes git wget
41-
# download and install miniforge
41+
# install miniforge (https://github.com/conda-forge/miniforge?tab=readme-ov-file#as-part-of-a-ci-pipeline)
4242
mkdir -p ${HOME}/tools
4343
cd ${HOME}/tools
44-
wget https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-Linux-x86_64.sh
45-
bash Miniforge3-Linux-x86_64.sh -b -p ${HOME}/tools/miniforge
46-
${HOME}/tools/miniforge/bin/mamba init bash
44+
wget -O Miniforge3.sh "https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-$(uname)-$(uname -m).sh"
45+
bash Miniforge3.sh -b -p ${HOME}/tools/miniforge
46+
source "${HOME}/tools/miniforge/etc/profile.d/conda.sh"
47+
source "${HOME}/tools/miniforge/etc/profile.d/mamba.sh"
4748
# modify/export env var PATH to BASH_ENV to be shared across run steps
4849
echo 'export PATH=${CONDA_PREFIX}/bin:${PATH}' >> ${BASH_ENV}
4950

0 commit comments

Comments
 (0)