File tree 2 files changed +43
-1
lines changed
2 files changed +43
-1
lines changed Original file line number Diff line number Diff line change @@ -209,3 +209,45 @@ jobs:
209
209
displayName : ' Component Detection'
210
210
211
211
- template : templates/clean-agent-build-directory-step.yml
212
+
213
+ - job : MacOS_py_Wheels
214
+ pool :
215
+ vmImage : ' macOS-10.13'
216
+ strategy :
217
+ matrix :
218
+ Python35 :
219
+ python.version : ' 3.5'
220
+ Python36 :
221
+ python.version : ' 3.6'
222
+ Python37 :
223
+ python.version : ' 3.7'
224
+ steps :
225
+ - task : CondaEnvironment@1
226
+ inputs :
227
+ createCustomEnvironment : true
228
+ environmentName : ' py$(python.version)'
229
+ packageSpecs : ' python=$(python.version)'
230
+ cleanEnvironment : true
231
+
232
+ - script : |
233
+ sudo python -m pip install numpy==1.15.0
234
+ sudo xcode-select --switch /Applications/Xcode_10.app/Contents/Developer
235
+ ./build.sh --config Release --skip_submodule_sync --parallel --use_openmp --build_wheel
236
+ displayName: 'Command Line Script'
237
+
238
+ - task : CopyFiles@2
239
+ displayName : ' Copy Python Wheel to: $(Build.ArtifactStagingDirectory)'
240
+ inputs :
241
+ SourceFolder : ' $(Build.SourcesDirectory)/build/Linux/Release/dist'
242
+ Contents : ' *.whl'
243
+ TargetFolder : ' $(Build.ArtifactStagingDirectory)'
244
+
245
+ - task : PublishBuildArtifacts@1
246
+ displayName : ' Publish Artifact: ONNXRuntime python wheel'
247
+ inputs :
248
+ ArtifactName : onnxruntime
249
+
250
+ - task : ms.vss-governance-buildtask.governance-build-task-component-detection.ComponentGovernanceComponentDetection@0
251
+ displayName : ' Component Detection'
252
+
253
+ - template : templates/clean-agent-build-directory-step.yml
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ if [ ! -f /opt/onnxruntime-python/bin/python${PYTHON_VER} ]; then
26
26
ln -s python /opt/onnxruntime-python/bin/python${PYTHON_VER}
27
27
fi
28
28
python -m pip install --upgrade --force-reinstall pip==19.1.1
29
- python -m pip install --upgrade --force-reinstall numpy==1.16.3
29
+ python -m pip install --upgrade --force-reinstall numpy==1.15.0
30
30
python -m pip install --upgrade --force-reinstall requests==2.21.0
31
31
python -m pip install --upgrade --force-reinstall wheel==0.31.1
32
32
python -m pip install --upgrade --force-reinstall setuptools==41.0.1
You can’t perform that action at this time.
0 commit comments