| 1 |
# Azure Pipeline build definition |
| 2 |
# |
| 3 |
# Use RelWithDebInfo build configuration so that linking on Windows doesn't require the |
| 4 |
# usually absent python debug dll. |
| 5 |
# |
| 6 |
# Set up the Windows python version to be the x86 (32 bit) version so that we can use the |
| 7 |
# default cmake generator which uses the 32 bit compiler |
| 8 |
# |
| 9 |
variables: |
| 10 |
Config: 'RelWithDebInfo' |
| 11 |
PythonVersion: '3.7' |
| 12 |
PythonArch: 'x64' |
| 13 |
CmakeConfigExtraArgs: '' |
| 14 |
StaticLibs: yes |
| 15 |
|
| 16 |
jobs: |
| 17 |
- job: Windows_VS2019 |
| 18 |
variables: |
| 19 |
CmakeConfigExtraArgs: '-A x64 -DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake' |
| 20 |
CmakeGenerator: '-G "Visual Studio 16 2019"' |
| 21 |
VCPKG_DEFAULT_TRIPLET: x64-windows |
| 22 |
pool: |
| 23 |
vmImage: 'windows-2019' |
| 24 |
steps: |
| 25 |
- script: | |
| 26 |
choco install -y swig --version=4.0.1 |
| 27 |
vcpkg install jsoncpp |
| 28 |
vcpkg integrate install |
| 29 |
name: InstallExtraStuff |
| 30 |
- template: steps.yml |
| 31 |
- job: Windows_VS2017 |
| 32 |
variables: |
| 33 |
PythonArch: 'x86' |
| 34 |
CmakeConfigExtraArgs: '-DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake' |
| 35 |
CmakeGenerator: '-G "Visual Studio 15 2017"' |
| 36 |
Config: 'MinSizeRel' |
| 37 |
CtestExtraArgs: '-E tox' |
| 38 |
VCPKG_DEFAULT_TRIPLET: x86-windows |
| 39 |
pool: |
| 40 |
vmImage: 'vs2017-win2016' |
| 41 |
steps: |
| 42 |
- script: | |
| 43 |
choco install -y swig --version=4.0.1 |
| 44 |
vcpkg install jsoncpp |
| 45 |
vcpkg integrate install |
| 46 |
name: InstallExtraStuff |
| 47 |
- template: steps.yml |
| 48 |
- job: Ubuntu |
| 49 |
variables: |
| 50 |
PythonVersion: '3.8' |
| 51 |
pool: |
| 52 |
vmImage: 'ubuntu-18.04' |
| 53 |
steps: |
| 54 |
- script: | |
| 55 |
sudo apt-get update |
| 56 |
sudo apt-get install -y swig libpython3-dev libsasl2-dev libjsoncpp-dev |
| 57 |
name: InstallExtraStuff |
| 58 |
- template: steps.yml |
| 59 |
- job: MacOS |
| 60 |
variables: |
| 61 |
PythonVersion: '3.6' |
| 62 |
PKG_CONFIG_PATH: '/usr/local/opt/[email protected]/lib/pkgconfig' |
| 63 |
CmakeConfigExtraArgs: '-DBUILD_RUBY=no' |
| 64 |
pool: |
| 65 |
vmImage: 'macOS-10.15' |
| 66 |
steps: |
| 67 |
- script: | |
| 68 |
brew update |
| 69 |
brew install libuv swig pkgconfig [email protected] jsoncpp |
| 70 |
name: InstallExtraStuff |
| 71 |
- template: steps.yml |