Skip to content

Commit 0f52d92

Browse files
authored
Merge pull request #806 from Zialus/appveyor-fix
Fix AppVeyor
2 parents 61d18ce + 5e8d41d commit 0f52d92

File tree

1 file changed

+21
-31
lines changed

1 file changed

+21
-31
lines changed

.appveyor.yml

+21-31
Original file line numberDiff line numberDiff line change
@@ -16,49 +16,39 @@ branches:
1616
# environment variables
1717
environment:
1818
global:
19-
INTELOCLSDKROOT: C:\Program Files (x86)\Intel\OpenCL SDK\
2019
BOOST_COMPUTE_DEFAULT_PLATFORM: Intel(R) OpenCL
21-
OPENCL_INCLUDE_DIR: C:\opencl\include
22-
# Downloaded OpenCL headers version (2.1)
23-
OPENCL_HEADERS_VER: 21
2420
# OpenCL version used in tests (2.0)
2521
OPENCL_VERSION: 200
2622
CXXFLAGS: -DBOOST_COMPUTE_MAX_CL_VERSION=%OPENCL_VERSION%
2723
matrix:
28-
- VS_VER: 2015
29-
CMAKE_GENERATOR: Visual Studio 14 2015 Win64
30-
BOOST_ROOT: C:\Libraries\boost_1_59_0
31-
BOOST_LIBRARYDIR: C:\Libraries\boost_1_59_0\lib64-msvc-14.0
32-
- VS_VER: 2013
33-
CMAKE_GENERATOR: Visual Studio 12 2013 Win64
34-
BOOST_ROOT: C:\Libraries\boost_1_58_0
35-
BOOST_LIBRARYDIR: C:\Libraries\boost_1_58_0\lib64-msvc-12.0
36-
37-
image: Visual Studio 2015
38-
39-
# build platforms
40-
platform:
41-
- x64
42-
43-
configuration:
44-
- Debug
24+
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
25+
CMAKE_GENERATOR: Visual Studio 15 2017 Win64
26+
BOOST_ROOT: C:\Libraries\boost_1_67_0
27+
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
28+
CMAKE_GENERATOR: Visual Studio 14 2015 Win64
29+
BOOST_ROOT: C:\Libraries\boost_1_63_0
30+
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2013
31+
CMAKE_GENERATOR: Visual Studio 12 2013 Win64
32+
BOOST_ROOT: C:\Libraries\boost_1_58_0
4533

4634
before_build:
47-
- appveyor DownloadFile "http://registrationcenter-download.intel.com/akdlm/irc_nas/vcp/8539/intel_sdk_for_opencl_setup_6.0.0.1049.exe"
48-
- start /wait .\intel_sdk_for_opencl_setup_6.0.0.1049.exe install --output=output.log --eula=accept
49-
#- type output.log
50-
- appveyor DownloadFile "http://registrationcenter-download.intel.com/akdlm/irc_nas/9022/opencl_runtime_16.1.1_x64_setup.msi"
51-
- start /wait msiexec /i opencl_runtime_16.1.1_x64_setup.msi /qn /l*v msiexec2.log
52-
#- type msiexec2.log
53-
- git clone --depth 1 https://github.com/KhronosGroup/OpenCL-Headers.git %OPENCL_INCLUDE_DIR%\CL
35+
# Install OpenCL headers and libraries
36+
- set NUGETDIR=C:\NUGET
37+
- nuget install opencl-nug -Version 0.777.77 -OutputDirectory %NUGETDIR%
38+
- dir %NUGETDIR%\opencl-nug.0.777.77\build\native\
39+
- set OCL_ROOT=%NUGETDIR%\opencl-nug.0.777.77\build\native
40+
# Install OpenCL Runtime
41+
- choco install opencl-intel-cpu-runtime
42+
# Check if it's working
43+
- ps: appveyor DownloadFile "https://ci.appveyor.com/api/projects/oblomov/clinfo/artifacts/clinfo.exe?job=platform:+x64" -FileName clinfo.exe
44+
- .\clinfo.exe
5445

5546
build_script:
5647
- mkdir build && cd build
57-
- cmake -G"%CMAKE_GENERATOR%" -DBOOST_COMPUTE_BUILD_TESTS=ON -DBOOST_COMPUTE_BUILD_EXAMPLES=ON -DOpenCL_INCLUDE_DIR=%OPENCL_INCLUDE_DIR% ..
48+
- cmake -G"%CMAKE_GENERATOR%" -DBOOST_COMPUTE_BUILD_TESTS=ON -DBOOST_COMPUTE_BUILD_EXAMPLES=ON ..
5849
- cmake --build . --config Debug
5950

6051
test_script:
6152
- .\example\Debug\list_devices.exe
6253
- .\example\Debug\hello_world.exe
63-
- ctest --output-on-failure
64-
- ctest --output-on-failure
54+
- ctest --output-on-failure --repeat-until-fail 2

0 commit comments

Comments
 (0)