1
1
parameters :
2
2
name : ' Conda build job'
3
- vmImage : ' Ubuntu-18 .04'
3
+ vmImage : ' ubuntu-22 .04'
4
4
py_maj : ' 3'
5
- py_min : ' 6 '
5
+ py_min : ' 9 '
6
6
7
7
jobs :
8
8
- job : ${{ parameters.name }}
@@ -12,17 +12,28 @@ jobs:
12
12
vmImage : ${{ parameters.vmImage }}
13
13
14
14
steps :
15
-
15
+ # install conda on osx
16
+ - ${{ if contains(parameters.vmImage, 'macOS') }} :
17
+ - bash : |
18
+ curl -O https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-x86_64.sh
19
+ bash Miniconda3-latest-MacOSX-x86_64.sh -b -p $HOME/miniconda
20
+ echo "##vso[task.prependpath]$HOME/miniconda/bin"
21
+ displayName: 'Install Miniconda on macOS'
16
22
# activate conda
17
- - ${{ if or(contains(parameters.vmImage, 'macOS'),contains(parameters.vmImage, 'Ubuntu')) }} :
23
+ - ${{ if contains(parameters.vmImage, 'macOS') }} :
24
+ - bash : |
25
+ source $HOME/miniconda/bin/activate
26
+ conda init bash
27
+ displayName: 'Add conda to PATH'
28
+ - ${{ if contains(parameters.vmImage, 'ubuntu') }} :
18
29
- bash : echo "##vso[task.prependpath]$CONDA/bin"
19
30
displayName : ' Add conda to PATH'
20
31
- ${{ if contains(parameters.vmImage, 'win') }} :
21
32
- powershell : Write-Host "##vso[task.prependpath]$env:CONDA\Scripts"
22
33
displayName : ' Add conda to PATH'
23
34
24
35
# Ubuntu install opengl items and remove swig packages that conflict with anaconda
25
- - ${{ if contains(parameters.vmImage, 'Ubuntu ') }} :
36
+ - ${{ if contains(parameters.vmImage, 'ubuntu ') }} :
26
37
- bash : |
27
38
sudo apt-get update && \
28
39
sudo apt-get -q -y install libglu1-mesa-dev libgl1-mesa-dev libxmu-dev libxi-dev && \
0 commit comments