mirror of
https://github.com/actions/runner-images.git
synced 2025-12-10 19:16:48 +00:00
22 lines
696 B
Bash
22 lines
696 B
Bash
#!/bin/bash -e
|
|
################################################################################
|
|
## File: install-miniconda.sh
|
|
## Desc: Install miniconda
|
|
################################################################################
|
|
|
|
# Source the helpers for use with the script
|
|
source $HELPER_SCRIPTS/etc-environment.sh
|
|
|
|
# Install Miniconda
|
|
curl -fsSL https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -o miniconda.sh \
|
|
&& chmod +x miniconda.sh \
|
|
&& ./miniconda.sh -b -p /usr/share/miniconda \
|
|
&& rm miniconda.sh
|
|
|
|
CONDA=/usr/share/miniconda
|
|
set_etc_environment_variable "CONDA" "${CONDA}"
|
|
|
|
ln -s $CONDA/bin/conda /usr/bin/conda
|
|
|
|
invoke_tests "Tools" "Conda"
|