Update README.md
[VK9.git] / appveyor.yml
blob029edbfdf55ebe6e109506723e959c40a378c047
1 environment:
2  VK_SDK_PATH: "C:\\VulkanSDK\\1.1.85.0"
3  VULKAN_SDK: "C:\\VulkanSDK\\1.1.85.0"
4  EIGEN_DIR: "C:\\Eigen"
5 version: '1.0.0.{build}'
7 image:
8  - Visual Studio 2017
10 clone_depth: 1
12 cache:
13   - C:\VulkanSDK\1.1.85.0\Bin -> appveyor.yml
14   - C:\VulkanSDK\1.1.85.0\Bin32 -> appveyor.yml
15   - C:\VulkanSDK\1.1.85.0\Include -> appveyor.yml
16   - C:\VulkanSDK\1.1.85.0\Source\lib -> appveyor.yml
17   - C:\VulkanSDK\1.1.85.0\Source\lib32 -> appveyor.yml
18   - C:\VulkanSDK\1.1.85.0\spirv-tools -> appveyor.yml
19   - C:\Eigen -> appveyor.yml
21 install:
22  # Download and Install Vulkan SDK
23  - ps: if(!(Test-Path C:\VulkanSDK)) { Invoke-WebRequest -Uri https://sdk.lunarg.com/sdk/download/1.1.85.0/windows/VulkanSDK-1.1.85.0-Installer.exe?Human=true -OutFile vulkan.exe }
24  - IF NOT EXIST C:\VulkanSDK ( vulkan.exe /S )
25  # Download Eigen
26  - ps: if(!(Test-Path C:\Eigen\Eigen)) { Invoke-WebRequest -Uri http://bitbucket.org/eigen/eigen/get/3.3.7.zip  -OutFile eigen.zip }
27  - ps: if(!(Test-Path C:\Eigen\Eigen)) { Expand-Archive ./eigen.zip -DestinationPath . }
28  - ps: if(!(Test-Path C:\Eigen\Eigen)) { mkdir C:\Eigen }
29  - ps: if(!(Test-Path C:\Eigen\Eigen)) { cd eigen-* }
30  - ps: if(!(Test-Path C:\Eigen\Eigen)) { move Eigen C:\Eigen\Eigen }
31 # Create build folders
32  - ps: if(!(Test-Path C:\VK9-x86-Release)) { mkdir C:\VK9-x86-Release }
33  - ps: if(!(Test-Path C:\VK9-x64-Release)) { mkdir C:\VK9-x64-Release }
34  # go back into the build dir
35  - ps: pushd "C:\projects\vk9\"
37 build_script:
38  - ps: echo $ENV:VULKAN_SDK
39  - ps: $Env:PLATFORM_TOOLSET="v141"
40  - msbuild VK9.sln /t:VK9-Library /p:Configuration=Release;Platform=Win32 /p:PlatformToolset=%PLATFORM_TOOLSET% /verbosity:minimal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
41  - ps: copy C:\projects\vk9\Release\d3d9.dll "C:\VK9-x86-Release\d3d9.dll"
42  - ps: copy C:\projects\vk9\Release\d3d9.pdb "C:\VK9-x86-Release\d3d9.pdb"
43  - ps: copy C:\projects\vk9\VK9-Library\VK9.conf "C:\VK9-x86-Release\VK9.conf"
44  - 7z a C:\VK9-x86-Release.zip C:\VK9-x86-Release
45  - msbuild VK9.sln /t:VK9-Library /p:Configuration=Release;Platform=x64 /p:PlatformToolset=%PLATFORM_TOOLSET% /verbosity:minimal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
46  - ps: copy C:\projects\vk9\x64\Release\d3d9.dll "C:\VK9-x64-Release\d3d9.dll"
47  - ps: copy C:\projects\vk9\x64\Release\d3d9.pdb "C:\VK9-x64-Release\d3d9.pdb"
48  - ps: copy C:\projects\vk9\VK9-Library\VK9.conf "C:\VK9-x64-Release\VK9.conf"
49  - 7z a C:\VK9-x64-Release.zip C:\VK9-x64-Release
51 after_build:
52  - ps: Push-AppveyorArtifact "C:\VK9-x86-Release.zip"
53  - ps: Push-AppveyorArtifact "C:\VK9-x64-Release.zip"