Skip to content

Commit

Permalink
switch to Miniforge for releases newer than 24.7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
trxcllnt committed Jan 26, 2025
1 parent 3a8a39e commit c00887c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
16 changes: 12 additions & 4 deletions features/src/mambaforge/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,18 @@ if [[ "$MAMBAFORGE_VERSION" == latest ]]; then
find_version_from_git_tags MAMBAFORGE_VERSION https://github.com/conda-forge/miniforge "tags/" "." "-[0-9]+" "true";
fi

wget --no-hsts -q -O /tmp/miniforge.sh \
"https://github.com/conda-forge/miniforge/releases/download/${MAMBAFORGE_VERSION}/Mambaforge-${MAMBAFORGE_VERSION}-Linux-$(uname -p).sh";

echo "Installing Mambaforge...";
last_mambaforge_ver="24.7.1"
curr_mambaforge_ver="$(grep -oE '[0-9]+.[0-9]+.[0-9]' <<< <<< "${MAMBAFORGE_VERSION}")";

if [[ "$curr_mambaforge_ver" > "$last_mambaforge_ver" ]]; then
wget --no-hsts -q -O /tmp/miniforge.sh \
"https://github.com/conda-forge/miniforge/releases/download/${MAMBAFORGE_VERSION}/Miniforge-${MAMBAFORGE_VERSION}-Linux-$(uname -p).sh";
echo "Installing Miniforge...";
else
wget --no-hsts -q -O /tmp/miniforge.sh \
"https://github.com/conda-forge/miniforge/releases/download/${MAMBAFORGE_VERSION}/Mambaforge-${MAMBAFORGE_VERSION}-Linux-$(uname -p).sh";
echo "Installing Mambaforge...";
fi

# Install Mambaforge
rm -rf /opt/conda;
Expand Down
2 changes: 1 addition & 1 deletion matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ x-nvhpc-curr: &nvhpc_curr { name: "nvhpc", version: "24.9" }

x-nvhpc-env: &nvhpc_env { CC: "nvc", CXX: "nvc++", CUDAHOSTCXX: "nvc++" }

x-mambaforge: &conda { name: "mambaforge", version: "24.11.0-1" }
x-mambaforge: &conda { name: "mambaforge" }
x-python: &python { name: "ghcr.io/devcontainers/features/python:1.6.2", version: "os-provided", installTools: "false", hide: true }
x-ucx-rapids: &ucx_rapids { name: "ucx", version: "1.18.0" }
x-openmpi: &openmpi { name: "openmpi" }
Expand Down

0 comments on commit c00887c

Please sign in to comment.