microsoft/onnxruntime-extensions
Publicmirrored fromhttps://github.com/microsoft/onnxruntime-extensionsAvailable
.pipelines/wheels_linux.yml
51lines · 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_x86_64 |
| 9 | timeoutInMinutes: 180 |
| 10 | pool: {name: 'Azure-Pipelines-EO-Ubuntu-2004-aiinfra'} |
| 11 | variables: |
| 12 | CIBW_BUILD: "cp3{8,9,10,11,12}-*" |
| 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 | |
| 23 | - bash: cibuildwheel --archs x86_64 --output-dir wheelhouse . |
| 24 | displayName: Build wheels for x86_64 |
| 25 | - task: PublishBuildArtifacts@1 |
| 26 | inputs: {pathtoPublish: 'wheelhouse'} |
| 27 | |
| 28 | - job: manylinux_aarch64 |
| 29 | timeoutInMinutes: 180 |
| 30 | pool: {name: 'Azure-Pipelines-EO-Ubuntu-2004-aiinfra'} |
| 31 | variables: |
| 32 | CIBW_BUILD: "cp3{8,9,10,11,12}-*" |
| 33 | CIBW_SKIP: "*musllinux_aarch64*" |
| 34 | # AzureOp doesn't support aaarch64 yet. |
| 35 | # CIBW_ENVIRONMENT: "${{ parameters.ExtraEnv }}" |
| 36 | |
| 37 | steps: |
| 38 | - task: UsePythonVersion@0 |
| 39 | - bash: | |
| 40 | set -o errexit |
| 41 | python3 -m pip install --upgrade pip |
| 42 | pip3 install cibuildwheel |
| 43 | displayName: Install dependencies |
| 44 | |
| 45 | - script: docker run --privileged --rm tonistiigi/binfmt --install arm64 |
| 46 | displayName: Register QEMU for arm64 |
| 47 | |
| 48 | - bash: cibuildwheel --archs aarch64 --output-dir wheelhouse . |
| 49 | displayName: Build wheels for arm64 |
| 50 | - task: PublishBuildArtifacts@1 |
| 51 | inputs: {pathtoPublish: 'wheelhouse'} |
| 52 | |