microsoft/onnxruntime-extensions
Publicmirrored from https://github.com/microsoft/onnxruntime-extensionsAvailable
.pipelines/wheels_linux.yml
25lines · modecode
| 1 | parameters: |
| 2 | - name: ExtraEnv |
| 3 | displayName: 'Extra env variable set to CIBW_ENVIRONMENT, in form of "A=1 B=2 C=3"' |
| 4 | type: string |
| 5 | default: 'OCOS_ENABLE_AZURE=1' |
| 6 | |
| 7 | jobs: |
| 8 | - job: linux |
| 9 | timeoutInMinutes: 180 |
| 10 | pool: {name: 'Azure-Pipelines-EO-Ubuntu-2004-aiinfra'} |
| 11 | variables: |
| 12 | CIBW_BUILD: "cp3{8,9,10,11}-*" |
| 13 | CIBW_ENVIRONMENT: "${{ parameters.ExtraEnv }}" |
| 14 | |
| 15 | steps: |
| 16 | - task: UsePythonVersion@0 |
| 17 | - bash: | |
| 18 | set -o errexit |
| 19 | python3 -m pip install --upgrade pip |
| 20 | pip3 install cibuildwheel |
| 21 | displayName: Install dependencies |
| 22 | - bash: cibuildwheel --output-dir wheelhouse . |
| 23 | displayName: Build wheels |
| 24 | - task: PublishBuildArtifacts@1 |
| 25 | inputs: {pathtoPublish: 'wheelhouse'} |
| 26 | |