-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathazure-pipelines.yml
90 lines (89 loc) · 2.88 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
variables:
CIBW_SKIP: pp* cp27-* *_i686 *-win32 *musllinux* *-manylinux*_i686
jobs:
- job: sdist
pool: {vmImage: 'Ubuntu-20.04'}
steps:
- task: UsePythonVersion@0
- bash: |
set -ex
python -m pip install --upgrade pip
python setup.py sdist -d upload
displayName: Build documentation
- task: PublishBuildArtifacts@1
inputs:
pathtoPublish: 'upload'
artifactName: 'wheels'
- job: manylinux
pool: {vmImage: 'Ubuntu-20.04'}
steps:
- task: UsePythonVersion@0
- bash: |
set -ex
mkdir -p build/{,upload} && cd build
cmake .. && cmake --build .
cpack && cp vpsolver.zip upload/vpsolver-linux64.zip
displayName: Build binaries
- task: PublishBuildArtifacts@1
inputs:
pathtoPublish: 'build/upload'
artifactName: 'binaries'
- bash: |
set -ex
python -m pip install --upgrade cibuildwheel==1.12.0
CIBW_BUILD="cp35-*" cibuildwheel --platform linux --output-dir wheelhouse .
python -m pip install --upgrade cibuildwheel==2.12.0
cibuildwheel --platform linux --output-dir wheelhouse .
displayName: Build wheels
- task: PublishBuildArtifacts@1
inputs:
pathtoPublish: 'wheelhouse'
artifactName: 'wheels'
- job: macos
pool: {vmImage: 'macos-latest'}
steps:
- task: UsePythonVersion@0
- bash: |
set -ex
mkdir -p build/{,upload} && cd build
cmake .. -DCMAKE_OSX_DEPLOYMENT_TARGET=10.9 && cmake --build .
cpack && cp vpsolver.zip upload/vpsolver-macos64.zip
displayName: Build binaries
- task: PublishBuildArtifacts@1
inputs:
pathtoPublish: 'build/upload'
artifactName: 'binaries'
- bash: |
set -ex
python -m pip install --upgrade cibuildwheel==2.12.0
cibuildwheel --platform macos --output-dir wheelhouse .
displayName: Build wheels
- task: PublishBuildArtifacts@1
inputs:
pathtoPublish: 'wheelhouse'
artifactName: 'wheels'
- job: windows
pool: {vmImage: 'windows-2019'}
steps:
- task: UsePythonVersion@0
- bash: |
set -ex
mkdir -p build/{,upload} && cd build
cmake .. && cmake --build . --config Release
cpack && cp vpsolver.zip upload/vpsolver-mswin64.zip
displayName: Build binaries
- task: PublishBuildArtifacts@1
inputs:
pathtoPublish: 'build/upload'
artifactName: 'binaries'
- bash: |
set -ex
python -m pip install --upgrade cibuildwheel==1.12.0
CIBW_BUILD="cp35-*" cibuildwheel --platform windows --output-dir wheelhouse .
python -m pip install --upgrade cibuildwheel==2.12.0
cibuildwheel --platform windows --output-dir wheelhouse .
displayName: Build wheels
- task: PublishBuildArtifacts@1
inputs:
pathtoPublish: 'wheelhouse'
artifactName: 'wheels'