.appveyor.yml 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. # Windows Build Configuration for AppVeyor
  2. # http://www.appveyor.com/docs/appveyor-yml
  3. # build version format
  4. version: "{build}"
  5. os: Visual Studio 2013
  6. platform:
  7. - x64
  8. configuration:
  9. - Debug
  10. - Release
  11. branches:
  12. only:
  13. - master
  14. # Travis advances the master-tot tag to current top of the tree after
  15. # each push into the master branch, because it relies on that tag to
  16. # upload build artifacts to the master-tot release. This will cause
  17. # double testing for each push on Appveyor: one for the push, one for
  18. # the tag advance. Disable testing tags.
  19. skip_tags: true
  20. clone_depth: 5
  21. matrix:
  22. fast_finish: true # Show final status immediately if a test fails.
  23. # scripts that run after cloning repository
  24. install:
  25. - C:/Python27/python.exe update_glslang_sources.py
  26. - set PATH=C:\ninja;C:\Python36;%PATH%
  27. - git clone https://github.com/google/googletest.git External/googletest
  28. - cd External/googletest
  29. - git checkout 440527a61e1c91188195f7de212c63c77e8f0a45
  30. - cd ../..
  31. build:
  32. parallel: true # enable MSBuild parallel builds
  33. verbosity: minimal
  34. build_script:
  35. - mkdir build && cd build
  36. - cmake -G "Visual Studio 12 2013 Win64" -DCMAKE_INSTALL_PREFIX=install ..
  37. - cmake --build . --config %CONFIGURATION% --target install
  38. test_script:
  39. - ctest -C %CONFIGURATION% --output-on-failure
  40. - cd ../Test && bash runtests
  41. - cd ../build
  42. after_test:
  43. # For debug build, the generated dll has a postfix "d" in its name.
  44. - ps: >-
  45. If ($env:configuration -Match "Debug") {
  46. $env:SUFFIX="d"
  47. } Else {
  48. $env:SUFFIX=""
  49. }
  50. - cd install
  51. # Zip all glslang artifacts for uploading and deploying
  52. - 7z a glslang-master-windows-"%PLATFORM%"-"%CONFIGURATION%".zip
  53. bin\glslangValidator.exe
  54. bin\spirv-remap.exe
  55. include\glslang\*
  56. include\SPIRV\*
  57. lib\glslang%SUFFIX%.lib
  58. lib\HLSL%SUFFIX%.lib
  59. lib\OGLCompiler%SUFFIX%.lib
  60. lib\OSDependent%SUFFIX%.lib
  61. lib\SPIRV%SUFFIX%.lib
  62. lib\SPVRemapper%SUFFIX%.lib
  63. lib\SPIRV-Tools%SUFFIX%.lib
  64. lib\SPIRV-Tools-opt%SUFFIX%.lib
  65. artifacts:
  66. - path: build\install\*.zip
  67. name: artifacts-zip
  68. deploy:
  69. - provider: GitHub
  70. auth_token:
  71. secure: YglcSYdl0TylEa59H4K6lylBEDr586NAt2EMgZquSo+iuPrwgZQuJLPCoihSm9y6
  72. release: master-tot
  73. description: "Continuous build of the latest master branch by Appveyor and Travis CI"
  74. artifact: artifacts-zip
  75. draft: false
  76. prerelease: false
  77. force_update: true
  78. on:
  79. branch: master
  80. APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2013