Skip to content

Commit

Permalink
Mambaforge is deprecated, replace with miniforge (#3597)
Browse files Browse the repository at this point in the history
* 🚨 Fix miniforge CI warning

* 🧱 Move to miniforge
  • Loading branch information
je-cook authored Sep 16, 2024
1 parent 38a8d21 commit 5b90839
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/actions/build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,6 @@ runs:
environment-file: conda/environment.yml
miniforge-version: "latest"
use-only-tar-bz2: false
miniforge-variant: Mambaforge
use-mamba: true
python-version: ${{ inputs.python-version }}

- name: Install bluemira
Expand Down
File renamed without changes.
10 changes: 5 additions & 5 deletions scripts/install-conda.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ fi

# Get and install mambaforge
if [ ! -d "$HOME/mambaforge" ]; then
curl -L -O https://github.com/conda-forge/miniforge/releases/latest/download/Mambaforge-$(uname)-$(uname -m).sh
bash Mambaforge-$(uname)-$(uname -m).sh -b -p "$HOME/mambaforge"
rm Mambaforge-$(uname)-$(uname -m).sh
curl -L -O https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-$(uname)-$(uname -m).sh
bash Miniforge3-$(uname)-$(uname -m).sh -b -p "$HOME/miniforge"
rm Miniforge3-$(uname)-$(uname -m).sh
fi

# Make an init file so we don't need to edit bashrc
# Note this will currently work for bash terminals
envsubst '$HOME' < conda/mambaforge-init.sh > ~/.mambaforge-init.sh
source ~/.mambaforge-init.sh
envsubst '$HOME' < conda/miniforge-init.sh > ~/.miniforge-init.sh
source ~/.miniforge-init.sh

# Create the bluemira conda environment
sed s/".*python.*"/" - python="$PYTHON_VERSION/g ./conda/environment.yml > ./conda/tmp_env.yml
Expand Down

0 comments on commit 5b90839

Please sign in to comment.