-
Notifications
You must be signed in to change notification settings - Fork 42
/
azure-pipelines.yml
113 lines (110 loc) · 3.41 KB
/
azure-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
trigger: none # trigger manually
stages:
- stage: native
displayName: 'Build native'
jobs:
- job: sdist
pool: {vmImage: 'Ubuntu-20.04'}
steps:
- task: UsePythonVersion@0
- bash: |
set -ex
cd nl-writer2/
pip install pybind11 setuptools
python setup.py sdist -d upload
displayName: Build sdist
- task: PublishBuildArtifacts@1
inputs: {pathtoPublish: 'nl-writer2/upload'}
- job: manylinux
pool: {vmImage: 'Ubuntu-20.04'}
steps:
- task: UsePythonVersion@0
- bash: |
set -ex
cd nl-writer2/
python -m pip install --upgrade cibuildwheel==2.16.2
cibuildwheel --platform linux --output-dir wheelhouse .
displayName: Build wheels
- task: PublishBuildArtifacts@1
inputs: {pathtoPublish: 'nl-writer2/wheelhouse'}
- job: macos
pool: {vmImage: 'macos-latest'}
variables:
MACOSX_DEPLOYMENT_TARGET: 10.15
steps:
- task: UsePythonVersion@0
- bash: |
set -ex
cd nl-writer2/
python -m pip install --upgrade cibuildwheel==2.16.2
cibuildwheel --platform macos --output-dir wheelhouse .
displayName: Build wheels
- task: PublishBuildArtifacts@1
inputs: {pathtoPublish: 'nl-writer2/wheelhouse'}
- job: windows
pool: {vmImage: 'windows-2022'}
steps:
- task: UsePythonVersion@0
- bash: |
set -ex
cd nl-writer2/
python -m pip install --upgrade cibuildwheel==2.16.2
cibuildwheel --platform windows --output-dir wheelhouse .
displayName: Build wheels
- task: PublishBuildArtifacts@1
inputs: {pathtoPublish: 'nl-writer2/wheelhouse'}
# - stage: qemu
# displayName: 'Build with QEMU'
# jobs:
- job: qemu
pool: {vmImage: 'Ubuntu-20.04'}
strategy:
matrix:
aarch64 cp37:
CIBW_BUILD: cp37-*
CIBW_ARCHS_LINUX: aarch64
aarch64 cp38:
CIBW_BUILD: cp38-*
CIBW_ARCHS_LINUX: aarch64
aarch64 cp39:
CIBW_BUILD: cp39-*
CIBW_ARCHS_LINUX: aarch64
aarch64 cp310:
CIBW_BUILD: cp310-*
CIBW_ARCHS_LINUX: aarch64
aarch64 cp311:
CIBW_BUILD: cp311-*
CIBW_ARCHS_LINUX: aarch64
aarch64 cp312:
CIBW_BUILD: cp312-*
CIBW_ARCHS_LINUX: aarch64
steps:
- task: UsePythonVersion@0
- bash: docker run --rm --privileged multiarch/qemu-user-static --persistent yes
displayName: Configure qemu
- bash: |
set -ex
cd nl-writer2/
python -m pip install --upgrade cibuildwheel==2.16.2
cibuildwheel --platform linux --output-dir wheelhouse .
displayName: Build wheels
- task: PublishBuildArtifacts@1
inputs: {pathtoPublish: 'nl-writer2/wheelhouse'}
- stage: publish
jobs:
- job: upload
pool: {vmImage: 'ubuntu-latest'}
steps:
- task: DownloadBuildArtifacts@0
inputs:
buildType: 'current'
downloadPath: 'artifacts/'
artifactName: 'drop'
displayName: 'Download current pipeline artifacts'
- bash: mv artifacts/drop artifacts/mp
displayName: Rename directory
- task: PublishPipelineArtifact@1
inputs:
targetPath: 'artifacts/'
artifact: 'release'
artifactType: 'pipeline'