@@ -6,51 +6,26 @@ trigger:
66
77jobs :
88 # Linux
9- - job : Linux
9+ - job : ' Linux'
1010 variables :
11- conda_version : ' Linux-x86_64'
12- conda_root : ' $(Agent.HomeDirectory)/miniconda3'
13- VCPKG_ROOT : ' $(Agent.HomeDirectory)/vcpkg'
14- python_arch : ' x64'
11+ wheel_platform : ' manylinux2010_x86_64'
1512 pool :
1613 vmImage : ' ubuntu-16.04'
1714 steps :
18- - script : |
19- sudo apt-get update
20- sudo apt-get install ninja-build swig libudev-dev
21- displayName: 'Install toolchain'
22- - script : |
23- wget https://repo.anaconda.com/miniconda/Miniconda3-latest-$(conda_version).sh -O $(Agent.HomeDirectory)/miniconda.sh
24- bash $(Agent.HomeDirectory)/miniconda.sh -b -p $(conda_root)
25- displayName: 'Install conda'
26- - script : |
27- git clone https://github.com/NordicPlayground/vcpkg.git $(VCPKG_ROOT)
28- $(VCPKG_ROOT)/bootstrap-vcpkg.sh
29- displayName: 'Install vcpkg'
30- - script : |
31- export PATH=$VCPKG_ROOT:$PATH
32- vcpkg install nrf-ble-driver:$(python_arch)-linux
33- displayName: 'Install nrf-ble-driver'
34- - script : |
35- $(conda_root)/bin/conda create -yq -n python2.7 python=2.7
36- displayName: 'Install Python 2.7'
37- - bash : |
38- export PATH=$(conda_root)/envs/python2.7/bin:$PATH
39- rm -rf _skbuild
40- pip install -r requirements-dev.txt
41- python setup.py bdist_wheel --build-type RelWithDebInfo
42- displayName: 'Build for python 2.7'
43- - script : |
44- $(conda_root)/bin/conda create -yq -n python3.7 python=3.7
45- displayName: 'Install Python 3.7'
46- - bash : |
47- export PATH=$(conda_root)/envs/python3.7/bin:$PATH
48- rm -rf _skbuild
49- pip install -r requirements-dev.txt
50- python setup.py bdist_wheel --build-type RelWithDebInfo
51- displayName: 'Build for python 3.7'
15+ - task : Docker@2
16+ displayName : Login to Docker Hub
17+ inputs :
18+ command : login
19+ containerRegistry : DockerImage
20+ - task : Docker@2
21+ displayName : ' Build ManyLinux'
22+ inputs :
23+ containerRegistry : DockerImage
24+ command : run
25+ arguments : ' --rm -e PLAT=$(wheel_platform) -v $(System.DefaultWorkingDirectory):/data pypywheels/manylinux2010-pypy_x86_64 /data/build_many_linux.sh'
5226 - bash : |
53- cp -R dist/*.whl "$(Build.ArtifactStagingDirectory)"
27+ ls -R wheelhouse
28+ cp --verbose -R wheelhouse/*.whl "$(Build.ArtifactStagingDirectory)"
5429 displayName: 'Copy artifacts'
5530 - task : GitHubRelease@0
5631 inputs :
6338 isDraft : ' true'
6439 addChangeLog : ' false'
6540 condition : ne(variables['Build.Reason'], 'PullRequest')
66-
67-
6841 # macOS
6942 - job : macOS
7043 variables :
8659 displayName: 'Install vcpkg'
8760 - script : |
8861 export PATH=$VCPKG_ROOT:$PATH
62+ export VCPKG_OSX_DEPLOYMENT_TARGET=10.9
8963 vcpkg install nrf-ble-driver:$(python_arch)-osx
9064 displayName: 'Install nrf-ble-driver'
9165 - bash : |
@@ -98,13 +72,13 @@ jobs:
9872 rm -rf _skbuild
9973 pypath=`which python2.7`
10074 ${pypath} -m pip install -r requirements-dev.txt
101- ${pypath} setup.py bdist_wheel --build-type RelWithDebInfo -- -DCMAKE_OSX_DEPLOYMENT_TARGET=10.9
75+ ${pypath} setup.py bdist_wheel --build-type Release -- -DCMAKE_OSX_DEPLOYMENT_TARGET=10.9
10276 displayName: 'Build for python 2.7'
10377 - bash : |
10478 rm -rf _skbuild
10579 pypath=`which python3.7`
10680 ${pypath} -m pip install -r requirements-dev.txt
107- ${pypath} setup.py bdist_wheel --build-type RelWithDebInfo -- -DCMAKE_OSX_DEPLOYMENT_TARGET=10.9
81+ ${pypath} setup.py bdist_wheel --build-type Release -- -DCMAKE_OSX_DEPLOYMENT_TARGET=10.9
10882 displayName: 'Build for python 3.7'
10983 - bash : |
11084 cp -R dist/*.whl "$(Build.ArtifactStagingDirectory)"
0 commit comments