forked from boostorg/ublas
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.appveyor.yml
73 lines (65 loc) · 2.93 KB
/
.appveyor.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
# Copyright 2018 Stefan Seefeld
# Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE_1_0.txt or copy at http://boost.org/LICENSE_1_0.txt)
version: 1.0.{build}-{branch}
shallow_clone: true
branches:
only:
- master
- develop
- /feature\/.*/
environment:
matrix:
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
TOOLSET: msvc-14.1
CXXSTD: 17
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
TOOLSET: msvc-14.0
CXXSTD: 11
cache:
- c:\tools\vcpkg\installed\
install:
# Install OpenCL runtime (driver) for Intel / Xeon package
- appveyor DownloadFile "http://registrationcenter-download.intel.com/akdlm/irc_nas/9022/opencl_runtime_16.1.1_x64_setup.msi"
- start /wait msiexec /i opencl_runtime_16.1.1_x64_setup.msi /qn /l*v msiexec2.log
# FIXME: To be removed https://help.appveyor.com/discussions/problems/13000-cmake_toolchain_filevcpkgcmake-conflicts-with-cmake-native-findboostcmake"
- ps: 'Write-Host "Installing latest vcpkg.cmake module" -ForegroundColor Magenta'
- appveyor DownloadFile https://raw.githubusercontent.com/Microsoft/vcpkg/master/scripts/buildsystems/vcpkg.cmake -FileName "c:\tools\vcpkg\scripts\buildsystems\vcpkg.cmake"
- set "TRIPLET=x64-windows"
- vcpkg --triplet %TRIPLET% install opencl clblas
- set PATH=C:\Tools\vcpkg\installed\%TRIPLET%\bin;%PATH%
- set VCPKG_I=C:\Tools\vcpkg\installed\%TRIPLET%\include
- set VCPKG_L=C:\Tools\vcpkg\installed\%TRIPLET%\lib
- set BOOST_BRANCH=develop
- if "%APPVEYOR_REPO_BRANCH%" == "master" set BOOST_BRANCH=master
- cd ..
- git clone -b %BOOST_BRANCH% https://github.com/boostorg/boost.git boost-root
- cd boost-root
- git submodule update --init tools/build
- git submodule update --init libs/config
- git submodule update --init tools/boostdep
- xcopy /s /e /q %APPVEYOR_BUILD_FOLDER% libs\numeric\ublas
- python tools/boostdep/depinst/depinst.py -I benchmarks numeric/ublas
- xcopy %APPVEYOR_BUILD_FOLDER%\opencl.jam %USERPROFILE%
- xcopy %APPVEYOR_BUILD_FOLDER%\clblas.jam %USERPROFILE%
- ps: |
# Creating %USERPROFILE%/user-config.jam file
@'
import os regex toolset ;
local toolset = [ regex.split [ os.environ TOOLSET ] "-" ] ;
local vcpkg_i = [ os.environ VCPKG_I ] ;
local vcpkg_l = [ os.environ VCPKG_L ] ;
using $(toolset[1]) : $(toolset[2-]:J="-") : ;
using opencl : : <include>$(vcpkg_i) <search>$(vcpkg_l) ;
using clblas : : <include>$(vcpkg_i) <search>$(vcpkg_l) ;
'@ | sc "$env:USERPROFILE/user-config.jam"
- cmd /c bootstrap
- b2 -j3 headers
build: off
test_script:
#- PATH=%ADDPATH%%PATH%
- if not "%CXXSTD%" == "" set CXXSTD=cxxstd=%CXXSTD%
- set ADDRMD=address-model=64
- b2 -j3 libs/numeric/ublas/test toolset=%TOOLSET% %CXXSTD% %ADDRMD%
- b2 -j3 libs/numeric/ublas/benchmarks toolset=%TOOLSET% %CXXSTD% %ADDRMD%
- b2 -j3 libs/numeric/ublas/examples/tensor toolset=%TOOLSET% %CXXSTD% %ADDRMD%