.appveyor.yml 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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. lib\glslang%SUFFIX%.lib
  57. lib\HLSL%SUFFIX%.lib
  58. lib\OGLCompiler%SUFFIX%.lib
  59. lib\OSDependent%SUFFIX%.lib
  60. lib\SPIRV%SUFFIX%.lib
  61. lib\SPVRemapper%SUFFIX%.lib
  62. lib\SPIRV-Tools%SUFFIX%.lib
  63. lib\SPIRV-Tools-opt%SUFFIX%.lib
  64. artifacts:
  65. - path: build\install\*.zip
  66. name: artifacts-zip
  67. deploy:
  68. - provider: GitHub
  69. auth_token:
  70. secure: YglcSYdl0TylEa59H4K6lylBEDr586NAt2EMgZquSo+iuPrwgZQuJLPCoihSm9y6
  71. release: master-tot
  72. description: "Continuous build of the latest master branch by Appveyor and Travis CI"
  73. artifact: artifacts-zip
  74. draft: false
  75. prerelease: false
  76. force_update: true
  77. on:
  78. branch: master
  79. APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2013