From 7c6bb6e21d3fcc623b3b912683be30106f940426 Mon Sep 17 00:00:00 2001 From: Cedric Nugteren Date: Tue, 28 Jun 2016 17:58:34 +0200 Subject: [PATCH] Added configuration for AppVeyor to keep the results of the builds as an 'artifact' --- .appveyor.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.appveyor.yml b/.appveyor.yml index 08f186ec..85e9e20f 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -1,6 +1,7 @@ environment: global: CLBLAST_ROOT: "%APPVEYOR_BUILD_FOLDER%\\bin\\clblast" + CLBLAST_INSTALL: "%APPVEYOR_BUILD_FOLDER%\\bin\\install" OPENCL_REGISTRY: "https://www.khronos.org/registry/cl" OPENCL_ROOT: "%APPVEYOR_BUILD_FOLDER%\\bin\\opencl" @@ -44,9 +45,21 @@ install: - ps: popd before_build: + - ps: mkdir $env:CLBLAST_INSTALL - ps: mkdir $env:CLBLAST_ROOT - ps: pushd $env:CLBLAST_ROOT - - cmake -G "Visual Studio 14 Win64" -DTESTS=ON -DCLIENTS=ON -DSAMPLES=ON %APPVEYOR_BUILD_FOLDER% + - cmake -G "Visual Studio 14 Win64" -DCMAKE_INSTALL_PREFIX=$env:CLBLAST_INSTALL -DCMAKE_BUILD_TYPE=%CONFIGURATION% -DTESTS=ON -DCLIENTS=ON -DSAMPLES=ON %APPVEYOR_BUILD_FOLDER% build_script: - cmake --build . + - cmake --build . --target install + +after_build: + - ps: pushd $env:CLBLAST_INSTALL + - 7z a CLBlast-Windows-x64.zip .\$env:CLBLAST_INSTALL\* + - ps: mv CLBlast-Windows-x64.zip $env:APPVEYOR_BUILD_FOLDER + +artifacts: + - path: '*.zip' + name: release + type: zip