microsoft/onnxruntime-extensions
Publicmirrored fromhttps://github.com/microsoft/onnxruntime-extensionsAvailable
.az/wheels_macos.yml
23lines · modecode
| 1 | jobs: |
| 2 | - job: macos |
| 3 | timeoutInMinutes: 120 |
| 4 | pool: {vmImage: 'macOS-12'} |
| 5 | variables: |
| 6 | CIBW_BUILD: "cp3{8,9}-*" |
| 7 | CIBW_ARCHS_MACOS: "x86_64 universal2 arm64" |
| 8 | # Skip trying to test arm64 builds on Intel Macs |
| 9 | # CIBW_TEST_SKIP: "*-macosx_arm64 *-macosx_universal2:arm64" |
| 10 | # Disable building PyPy wheels |
| 11 | CIBW_SKIP: pp* |
| 12 | |
| 13 | steps: |
| 14 | - task: UsePythonVersion@0 |
| 15 | - bash: | |
| 16 | set -o errexit |
| 17 | python3 -m pip install --upgrade pip |
| 18 | python3 -m pip install cibuildwheel |
| 19 | displayName: Install dependencies |
| 20 | - bash: CPU_NUMBER=2 cibuildwheel --output-dir wheelhouse . |
| 21 | displayName: Build wheels |
| 22 | - task: PublishBuildArtifacts@1 |
| 23 | inputs: {pathtoPublish: wheelhouse} |
| 24 | |