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