Skip to content

Commit

Permalink
use mambaforge
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiasdiener committed Jul 24, 2023
1 parent 31c7e85 commit 1966968
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .ci-support/install.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@

set -ex

myos=$(uname)
myarch=$(uname -m)

if [[ "$(uname)" = "Darwin" ]]; then
PLATFORM=MacOSX
brew update
brew install open-mpi
brew install octave
else
PLATFORM=Linux
if ! command -v mpicc &> /dev/null ;then
sudo apt-get update
sudo apt-get -y install libopenmpi-dev openmpi-bin moreutils
Expand All @@ -19,16 +20,16 @@ else
fi

MINIFORGE_INSTALL_DIR=.miniforge3
MINIFORGE_INSTALL_SH=Miniforge3-$PLATFORM-x86_64.sh
MINIFORGE_INSTALL_SH=Mambaforge-$myos-$myarch.sh
curl -L -O "https://github.com/conda-forge/miniforge/releases/latest/download/$MINIFORGE_INSTALL_SH"
rm -Rf "$MINIFORGE_INSTALL_DIR"
bash "$MINIFORGE_INSTALL_SH" -b -p "$MINIFORGE_INSTALL_DIR" | ts
bash "$MINIFORGE_INSTALL_SH" -b -p "$MINIFORGE_INSTALL_DIR"

# Temporarily disabled to get CI unstuck
#PATH="$MINIFORGE_INSTALL_DIR/bin/:$PATH" conda update conda --yes --quiet
#PATH="$MINIFORGE_INSTALL_DIR/bin/:$PATH" conda update --all --yes --quiet

$MINIFORGE_INSTALL_DIR/bin/conda env create --file conda-env.yml --name testing | ts
$MINIFORGE_INSTALL_DIR/bin/mamba env create --file conda-env.yml --name testing | ts

. "$MINIFORGE_INSTALL_DIR/bin/activate" testing
conda list
Expand Down

0 comments on commit 1966968

Please sign in to comment.