scenepic/pipelines/python-wheels.yml

52 строки
1.4 KiB
YAML

trigger:
- main
pr: none
jobs:
- job: linux
pool: {vmImage: 'ubuntu-latest'}
steps:
- task: UsePythonVersion@0
- template: templates/npm-steps.yml
- bash: |
set -o errexit
python3 -m pip install --upgrade pip
pip3 install cibuildwheel==2.7.0
displayName: Install dependencies
- bash: cibuildwheel --output-dir wheelhouse .
displayName: Build wheels
- task: PublishBuildArtifacts@1
inputs: {pathtoPublish: 'wheelhouse'}
- job: macos
variables:
CIBW_ARCHS_MACOS: x86_64 arm64
pool: {vmImage: 'macos-latest'}
steps:
- task: UsePythonVersion@0
- template: templates/npm-steps.yml
- bash: |
set -o errexit
python3 -m pip install --upgrade pip
python3 -m pip install cibuildwheel==2.7.0
displayName: Install dependencies
- bash: cibuildwheel --output-dir wheelhouse .
displayName: Build wheels
- task: PublishBuildArtifacts@1
inputs: {pathtoPublish: wheelhouse}
- job: windows
pool: {vmImage: 'windows-latest'}
steps:
- task: UsePythonVersion@0
- template: templates/npm-steps.yml
- bash: |
set -o errexit
python -m pip install --upgrade pip
pip install cibuildwheel==2.7.0
displayName: Install dependencies
- bash: cibuildwheel --output-dir wheelhouse .
displayName: Build wheels
- task: PublishBuildArtifacts@1
inputs: {pathtoPublish: 'wheelhouse'}