mirror of
https://github.com/KhronosGroup/Vulkan-Hpp.git
synced 2024-10-14 16:32:17 +00:00
Add an appveyor config (#347)
This commit is contained in:
parent
42d348f969
commit
d8513f1b7f
43
.appveyor.yml
Normal file
43
.appveyor.yml
Normal file
@ -0,0 +1,43 @@
|
||||
os:
|
||||
- Visual Studio 2017
|
||||
|
||||
build:
|
||||
verbosity: detailed
|
||||
|
||||
configuration:
|
||||
- Debug
|
||||
|
||||
environment:
|
||||
matrix:
|
||||
- GENERATOR: Visual Studio 15 2017
|
||||
RAW_PLATFORM: x86
|
||||
- GENERATOR: Visual Studio 15 2017 Win64
|
||||
RAW_PLATFORM: amd64
|
||||
|
||||
|
||||
install:
|
||||
- git submodule update --init --recursive
|
||||
|
||||
|
||||
before_build:
|
||||
- call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" %RAW_PLATFORM%
|
||||
- cd C:\projects\Vulkan-Hpp
|
||||
|
||||
|
||||
build_script:
|
||||
- mkdir appveyor-build
|
||||
- cd appveyor-build
|
||||
- cmake .. "-G%GENERATOR%"
|
||||
- cmake --build . --config %CONFIGURATION%
|
||||
|
||||
test_script:
|
||||
- "%CONFIGURATION%\\VulkanHppGenerator"
|
||||
- ps: Write-Output "#include ""vulkan.hpp""" | Out-File -FilePath test.cpp
|
||||
- ps: Write-Output "int myCreateInstance()" | Out-File -FilePath test.cpp -Append
|
||||
- ps: Write-Output "{" | Out-File -FilePath test.cpp -Append
|
||||
- ps: Write-Output " vk::Instance inst;" | Out-File -FilePath test.cpp -Append
|
||||
- ps: Write-Output " auto const inst_info = vk::InstanceCreateInfo();" | Out-File -FilePath test.cpp -Append
|
||||
- ps: Write-Output " vk::Result result = vk::createInstance(&inst_info, nullptr, &inst);" | Out-File -FilePath test.cpp -Append
|
||||
- ps: Write-Output " return static_cast<int> (result);" | Out-File -FilePath test.cpp -Append
|
||||
- ps: Write-Output "}" | Out-File -FilePath test.cpp -Append
|
||||
- cl.exe -I../vulkan -I../Vulkan-Headers/include /EHsc -c test.cpp
|
Loading…
Reference in New Issue
Block a user