diff options
author | Cedric Nugteren <web@cedricnugteren.nl> | 2016-06-27 13:55:16 +0200 |
---|---|---|
committer | Cedric Nugteren <web@cedricnugteren.nl> | 2016-06-27 13:55:16 +0200 |
commit | dac99451d949073ccbbadb1488f9a5bb4a1c437d (patch) | |
tree | 6d30678dfd779cb88497d8a1d396cb40feac7ff4 /.appveyor.yml | |
parent | 7eeb790824795b85f889d67e11685dc4f5c0eccf (diff) |
Fixed a bug in the Appveyor script
Diffstat (limited to '.appveyor.yml')
-rw-r--r-- | .appveyor.yml | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/.appveyor.yml b/.appveyor.yml index 9d5ce74b..586fb8e0 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -12,15 +12,14 @@ install: - ps: mkdir $env:OPENCL_ROOT - ps: pushd $env:OPENCL_ROOT - ps: $opencl_registry = $env:OPENCL_REGISTRY - # This downloads the source to the example/demo icd library - - ps: wget $opencl_registry/specs/opencl-icd-1.2.11.0.tgz -OutFile opencl-icd-1.2.11.0.tgz - - ps: 7z x opencl-icd-1.2.11.0.tgz - - ps: 7z x opencl-icd-1.2.11.0.tar - - ps: mv .\icd\* . + # This downloads the source to the Khronos ICD library + - git clone --depth 1 https://github.com/KhronosGroup/OpenCL-ICD-Loader.git + - ps: mv ./OpenCL-ICD-Loader/* . # This downloads all the opencl header files # The cmake build files expect a directory called inc - ps: mkdir inc/CL - - ps: wget $opencl_registry/api/1.2/ | select -ExpandProperty links | where {$_.href -like "*.h*"} | select -ExpandProperty outerText | foreach{ wget $opencl_registry/api/1.2/$_ -OutFile inc/CL/$_ } + - git clone --depth 1 https://github.com/KhronosGroup/OpenCL-Headers.git inc/CL + - ps: wget $opencl_registry/api/2.1/cl.hpp -OutFile inc/CL/cl.hpp # - ps: dir; if( $lastexitcode -eq 0 ){ dir include/CL } else { Write-Output boom } # Create the static import lib in a directory called lib, so findopencl() will find it - ps: mkdir lib @@ -28,10 +27,14 @@ install: - cmake -G "NMake Makefiles" .. - nmake - ps: popd + # Switch to OpenCL 1.2 headers + - ps: pushd inc/CL + - git fetch origin opencl12:opencl12 + - git checkout opencl12 + - ps: popd # Rename the inc directory to include, so FindOpencl() will find it - ps: ren inc include - ps: popd - - ps: popd before_build: - ps: mkdir $env:CLBLAST_ROOT |