mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-02 03:55:34 +00:00
* Add MacOS leg of Python packaging job * Update copy files source directory for Mac OS leg * Add a task to display the binaries directories contents after build wheel creation * Revert some changes * Add task to log * Update * Remove unnecessary logs
This commit is contained in:
parent
4d768b3a0f
commit
28a6f6b11b
2 changed files with 43 additions and 1 deletions
|
|
@ -209,3 +209,45 @@ jobs:
|
|||
displayName: 'Component Detection'
|
||||
|
||||
- template: templates/clean-agent-build-directory-step.yml
|
||||
|
||||
- job: MacOS_py_Wheels
|
||||
pool:
|
||||
vmImage: 'macOS-10.13'
|
||||
strategy:
|
||||
matrix:
|
||||
Python35:
|
||||
python.version: '3.5'
|
||||
Python36:
|
||||
python.version: '3.6'
|
||||
Python37:
|
||||
python.version: '3.7'
|
||||
steps:
|
||||
- task: CondaEnvironment@1
|
||||
inputs:
|
||||
createCustomEnvironment: true
|
||||
environmentName: 'py$(python.version)'
|
||||
packageSpecs: 'python=$(python.version)'
|
||||
cleanEnvironment: true
|
||||
|
||||
- script: |
|
||||
sudo python -m pip install numpy==1.15.0
|
||||
sudo xcode-select --switch /Applications/Xcode_10.app/Contents/Developer
|
||||
./build.sh --config Release --skip_submodule_sync --parallel --use_openmp --build_wheel
|
||||
displayName: 'Command Line Script'
|
||||
|
||||
- task: CopyFiles@2
|
||||
displayName: 'Copy Python Wheel to: $(Build.ArtifactStagingDirectory)'
|
||||
inputs:
|
||||
SourceFolder: '$(Build.SourcesDirectory)/build/Linux/Release/dist'
|
||||
Contents: '*.whl'
|
||||
TargetFolder: '$(Build.ArtifactStagingDirectory)'
|
||||
|
||||
- task: PublishBuildArtifacts@1
|
||||
displayName: 'Publish Artifact: ONNXRuntime python wheel'
|
||||
inputs:
|
||||
ArtifactName: onnxruntime
|
||||
|
||||
- task: ms.vss-governance-buildtask.governance-build-task-component-detection.ComponentGovernanceComponentDetection@0
|
||||
displayName: 'Component Detection'
|
||||
|
||||
- template: templates/clean-agent-build-directory-step.yml
|
||||
|
|
@ -26,7 +26,7 @@ if [ ! -f /opt/onnxruntime-python/bin/python${PYTHON_VER} ]; then
|
|||
ln -s python /opt/onnxruntime-python/bin/python${PYTHON_VER}
|
||||
fi
|
||||
python -m pip install --upgrade --force-reinstall pip==19.1.1
|
||||
python -m pip install --upgrade --force-reinstall numpy==1.16.3
|
||||
python -m pip install --upgrade --force-reinstall numpy==1.15.0
|
||||
python -m pip install --upgrade --force-reinstall requests==2.21.0
|
||||
python -m pip install --upgrade --force-reinstall wheel==0.31.1
|
||||
python -m pip install --upgrade --force-reinstall setuptools==41.0.1
|
||||
|
|
|
|||
Loading…
Reference in a new issue