@@ -52,9 +52,37 @@ stages:
5252 sudo apt-get -q -y install libglu1-mesa-dev freeglut3-dev mesa-common-dev
5353 displayName: 'Install OpenGL headers'
5454
55- - template : conda-enable.yml
56- parameters :
57- vmImage : ubuntu-latest
55+ # install conda for mac
56+ - bash : brew install miniforge && ls /usr/local/Caskroom/miniforge/base/bin
57+ displayName : ' MacOS install miniforge'
58+ condition : eq( variables['Agent.OS'], 'Darwin' )
59+
60+ # activate conda
61+ - bash : echo "##vso[task.prependpath]/usr/local/Caskroom/miniforge/base/bin"
62+ condition : eq( variables['Agent.OS'], 'Darwin' )
63+ displayName : ' Add conda to PATH - OSX'
64+
65+ - bash : echo "##vso[task.prependpath]$CONDA/bin"
66+ condition : eq( variables['Agent.OS'], 'Linux' )
67+ displayName : ' Add conda to PATH - Linux'
68+
69+ - powershell : Write-Host "##vso[task.prependpath]$env:CONDA\Scripts"
70+ condition : eq( variables['Agent.OS'], 'Windows_NT' )
71+ displayName : ' Add conda to PATH - Windows'
72+
73+ - powershell : Write-Host "##vso[task.prependpath]$env:CONDA\Library\bin"
74+ condition : eq( variables['Agent.OS'], 'Windows_NT' )
75+ displayName : ' Add condabin to PATH - Windows'
76+
77+ # install mamba
78+ - bash : |
79+ conda config --set anaconda_upload yes --set always_yes yes --set solver libmamba && \
80+ conda config --add channels conda-forge && \
81+ conda install -c conda-forge -q mamba micromamba conda-devenv libsolv conda-libmamba-solver && \
82+ env && \
83+ conda info && \
84+ conda list
85+ displayName: 'Install mamba, boa; report config and info'
5886
5987 - bash : conda create --yes --quiet --name build_env -c conda-forge conda-build boa conda-verify libarchive python=3.12 anaconda-client
6088 displayName : Create Anaconda environment
@@ -93,56 +121,3 @@ stages:
93121 PYTHON_VERSION: 3.${{ minor }}
94122 PACKAGE_VERSION: $(Build.SourceBranchName)
95123 TOKEN: $(anaconda.TOKEN)
96-
97- # - stage: build_installers
98- # jobs:
99- # - template: constructor-build.yml@templates
100- # parameters:
101- # name: linux
102- # vmImage: 'ubuntu-latest'
103- # - template: constructor-build.yml@templates
104- # parameters:
105- # name: win
106- # vmImage: 'windows-latest'
107- # - template: constructor-build.yml@templates
108- # parameters:
109- # name: macos
110- # vmImage: 'macOS-latest'
111-
112- # - stage: upload_installers
113- # jobs:
114- # - job: upload_to_github
115- # condition: ne(variables['Build.Reason'], 'PullRequest')
116- # pool:
117- # vmImage: ubuntu-latest
118- # steps:
119- # - download: current
120- # artifact: installer_ubuntu-latest
121- # - download: current
122- # artifact: installer_windows-latest
123- # - download: current
124- # artifact: installer_macOS-latest
125- # - bash: cp $(Pipeline.Workspace)/installer*/*.* .
126- # - task: GitHubRelease@1
127- # inputs:
128- # gitHubConnection: github.com_oauth
129- # assets: CQ-editor-*.*
130- # action: edit
131- # tag: nightly
132- # target: d8e247d15001bf785ef7498d922b4b5aa017a9c9
133- # addChangeLog: false
134- # assetUploadMode: replace
135- # isPreRelease: true
136-
137- # stage left for debugging, disabled by default
138- # - stage: verify
139- # condition: False
140- # jobs:
141- # - job: verify_linux
142- # pool:
143- # vmImage: ubuntu-latest
144- # steps:
145- # - download: current
146- # artifact: installer_ubuntu-latest
147- # - bash: cp $(Pipeline.Workspace)/installer*/*.* .
148- # - bash: sh ./CQ-editor-master-Linux-x86_64.sh -b -p dummy && cd dummy && ./run.sh
0 commit comments