-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathmicromamba-enable.yml
More file actions
41 lines (35 loc) · 1.71 KB
/
Copy pathmicromamba-enable.yml
File metadata and controls
41 lines (35 loc) · 1.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
parameters:
mamba: '2'
python: '3.13'
steps:
# install micromamba
- bash: |
"${SHELL}" <(curl -L micro.mamba.pm/install.sh) && \
if [ -f ~/.bash_profile ]; then source ~/.bash_profile; fi && \
if [ -f ~/.bashrc ]; then source ~/.bashrc; fi && \
micromamba install -y -c conda-forge -q mamba=${{ parameters.mamba }} python=${{ parameters.python }} conda-devenv libsolv conda-libmamba-solver && \
env && \
micromamba info && \
micromamba list && \
echo "$(micromamba shell hook --shell bash)" >> ~/.mambastartup
displayName: 'Install mamba, boa; report config and info'
# add to path
- bash: |
echo "##vso[task.prependpath]/Users/runner/.local/bin/" && \
echo "##vso[task.setvariable variable=BASH_ENV]/Users/runner/.mambastartup"
condition: eq( variables['Agent.OS'], 'Darwin' )
displayName: 'Add micromamba to PATH - OSX'
- bash: |
echo "##vso[task.prependpath]/home/vsts/.local/bin/" && \
echo "##vso[task.setvariable variable=BASH_ENV]/home/vsts/.mambastartup"
condition: eq( variables['Agent.OS'], 'Linux' )
displayName: 'Add micromamba to PATH - Linux'
- bash: |
echo "##vso[task.prependpath]/c/Users/VssAdministrator/.local/bin/" && \
echo "##vso[task.setvariable variable=BASH_ENV]/c/Users/VssAdministrator/.mambastartup" && \
cp /c/Users/VssAdministrator/.local/bin/micromamba /c/Users/VssAdministrator/.local/bin/micromamba.exe
condition: eq( variables['Agent.OS'], 'Windows_NT' )
displayName: 'Add micromamba to PATH - Windows'
- powershell: Write-Host "##vso[task.prependpath]C:/Users/VssAdministrator/.local/bin/"
condition: eq( variables['Agent.OS'], 'Windows_NT' )
displayName: 'Add micromamba to PATH - Windows (pwsh)'