microsoft/onnxruntime-extensions
Publicmirrored fromhttps://github.com/microsoft/onnxruntime-extensionsAvailable
.pipelines/wheels_win32.yml
24lines · modecode
| 1 | parameters: |
| 2 | - name: ExtraEnv |
| 3 | displayName: 'Extra env variable set to CIBW_ENVIRONMENT' |
| 4 | type: string |
| 5 | default: 'ExampleEnvVar=ON' |
| 6 | |
| 7 | jobs: |
| 8 | - job: windows |
| 9 | timeoutInMinutes: 120 |
| 10 | pool: {name: 'onnxruntime-Win-CPU-2022'} |
| 11 | variables: |
| 12 | CIBW_BUILD: "cp3{8,9,10,11}-*amd64" |
| 13 | CIBW_ENVIRONMENT: "${{ parameters.ExtraEnv }}" |
| 14 | |
| 15 | steps: |
| 16 | - task: UsePythonVersion@0 |
| 17 | - script: | |
| 18 | python -m pip install --upgrade pip |
| 19 | pip install cibuildwheel |
| 20 | displayName: Install dependencies |
| 21 | - bash: cibuildwheel --platform windows --output-dir wheelhouse . |
| 22 | displayName: Build wheels |
| 23 | - task: PublishBuildArtifacts@1 |
| 24 | inputs: {pathtoPublish: 'wheelhouse'} |
| 25 | |