Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable Windows builds on Azure Pipelines #2632

Merged
merged 2 commits into from
Nov 23, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
99 changes: 0 additions & 99 deletions .appveyor.yml

This file was deleted.

41 changes: 41 additions & 0 deletions .azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,3 +87,44 @@ jobs:
git push --force
displayName: 'Push Generated Documentation To GitHub'
condition: eq(variables['Build.SourceBranch'], 'refs/heads/master')
- job: vs2017
displayName: Windows VS2017 Build
timeoutInMinutes: 0
pool:
vmImage: 'vs2017-win2016'
strategy:
matrix:
x86:
PLATFORM: 'x86'
ARCHITECTURE: 'x86'
GENERATOR: 'Visual Studio 15 2017'
x64:
PLATFORM: 'x64'
ARCHITECTURE: 'x86_amd64'
GENERATOR: 'Visual Studio 15 2017 Win64'
variables:
BUILD_DIR: '$(Agent.WorkFolder)\build'
VCPKG_DIR: '$(Agent.WorkFolder)\vcpkg'
VCVARSALL: '%ProgramFiles(x86)%\Microsoft Visual Studio\2017\Enterprise\VC\Auxiliary\Build\vcvarsall.bat'
CONFIGURATION: 'Release'
steps:
- script: |
git clone https://github.com/microsoft/vcpkg --depth 1 %VCPKG_DIR%
echo.set(VCPKG_BUILD_TYPE release)>> %VCPKG_DIR%\triplets\%PLATFORM%-windows.cmake
%VCPKG_DIR%\bootstrap-vcpkg.bat
%VCPKG_DIR%\vcpkg.exe version
displayName: Bootstrap vcpkg
- script: |
%VCPKG_DIR%\vcpkg.exe install boost-system boost-filesystem boost-thread boost-date-time boost-iostreams boost-chrono boost-asio boost-dynamic-bitset boost-foreach boost-graph boost-interprocess boost-multi-array boost-ptr-container boost-random boost-signals2 eigen3 flann gtest qhull --triplet %PLATFORM%-windows
%VCPKG_DIR%\vcpkg.exe list
displayName: Install Dependencies
- script: |
call "%VCVARSALL%" %ARCHITECTURE%
set PATH=%VCPKG_DIR%\installed\%PLATFORM%-windows\bin;%PATH%
mkdir %BUILD_DIR% && cd %BUILD_DIR%
cmake $(Build.SourcesDirectory) -G"%GENERATOR%" -DCMAKE_TOOLCHAIN_FILE=%VCPKG_DIR%\scripts\buildsystems\vcpkg.cmake -DVCPKG_APPLOCAL_DEPS=ON -DPCL_BUILD_WITH_BOOST_DYNAMIC_LINKING_WIN32=ON -DPCL_BUILD_WITH_FLANN_DYNAMIC_LINKING_WIN32=ON -DPCL_BUILD_WITH_QHULL_DYNAMIC_LINKING_WIN32=ON -DBUILD_global_tests=ON -DBUILD_tools=OFF -DBUILD_surface_on_nurbs=ON
displayName: 'CMake Configuration'
- script: cd %BUILD_DIR% && cmake --build . --config %CONFIGURATION%
displayName: 'Build Library'
- script: cd %BUILD_DIR% && ctest -C %CONFIGURATION% -V
displayName: 'Run Unit Tests'
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ Continuous integration
[license]: https://github.com/PointCloudLibrary/pcl/blob/master/LICENSE.txt

[![Build Status](https://dev.azure.com/PointCloudLibrary/pcl/_apis/build/status/PointCloudLibrary.pcl)](https://dev.azure.com/PointCloudLibrary/pcl/_build/latest?definitionId=1)
[![Build Status](https://ci.appveyor.com/api/projects/status/oiep6oktpmuap7qr/branch/master?svg=true)](https://ci.appveyor.com/project/PointCloudLibrary/pcl/branch/master)

Description
-----------
Expand Down