2016-06-26 05:06:20 +00:00
|
|
|
# Windows Build Configuration for AppVeyor
|
|
|
|
# http://www.appveyor.com/docs/appveyor-yml
|
|
|
|
|
|
|
|
# build version format
|
|
|
|
version: "{build}"
|
|
|
|
|
2022-04-30 05:37:59 +00:00
|
|
|
os: Visual Studio 2015
|
2016-06-26 05:06:20 +00:00
|
|
|
|
|
|
|
platform:
|
2018-06-02 07:26:43 +00:00
|
|
|
- x64
|
2016-06-26 05:06:20 +00:00
|
|
|
|
|
|
|
configuration:
|
|
|
|
- Debug
|
|
|
|
- Release
|
|
|
|
|
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- master
|
|
|
|
|
2022-04-30 05:37:59 +00:00
|
|
|
# changes to these files don't need to trigger testing
|
|
|
|
skip_commits:
|
|
|
|
files:
|
|
|
|
- README.md
|
|
|
|
- README-spirv-remap.txt
|
|
|
|
- LICENSE.txt
|
|
|
|
- CODE_OF_CONDUCT.md
|
|
|
|
- BUILD.*
|
|
|
|
- WORKSPACE
|
|
|
|
- kokoro/*
|
|
|
|
- make-revision
|
|
|
|
- Android.mk
|
|
|
|
- _config.yml
|
|
|
|
|
2018-06-02 07:26:43 +00:00
|
|
|
# Travis advances the master-tot tag to current top of the tree after
|
|
|
|
# each push into the master branch, because it relies on that tag to
|
|
|
|
# upload build artifacts to the master-tot release. This will cause
|
|
|
|
# double testing for each push on Appveyor: one for the push, one for
|
|
|
|
# the tag advance. Disable testing tags.
|
|
|
|
skip_tags: true
|
|
|
|
|
2016-06-26 05:06:20 +00:00
|
|
|
clone_depth: 5
|
|
|
|
|
|
|
|
matrix:
|
|
|
|
fast_finish: true # Show final status immediately if a test fails.
|
|
|
|
|
|
|
|
# scripts that run after cloning repository
|
|
|
|
install:
|
2018-06-02 07:26:43 +00:00
|
|
|
- C:/Python27/python.exe update_glslang_sources.py
|
2022-04-30 05:37:59 +00:00
|
|
|
- set PATH=C:\ninja;C:\Python36;%PATH%
|
|
|
|
- git clone https://github.com/google/googletest.git External/googletest
|
2016-06-26 05:06:20 +00:00
|
|
|
|
|
|
|
build:
|
|
|
|
parallel: true # enable MSBuild parallel builds
|
|
|
|
verbosity: minimal
|
|
|
|
|
|
|
|
build_script:
|
|
|
|
- mkdir build && cd build
|
2022-04-30 05:37:59 +00:00
|
|
|
- cmake -G "Visual Studio 14 2015 Win64" -DCMAKE_INSTALL_PREFIX=install ..
|
2016-06-26 05:06:20 +00:00
|
|
|
- cmake --build . --config %CONFIGURATION% --target install
|
|
|
|
|
|
|
|
test_script:
|
|
|
|
- ctest -C %CONFIGURATION% --output-on-failure
|
|
|
|
- cd ../Test && bash runtests
|
2018-06-02 07:26:43 +00:00
|
|
|
- cd ../build
|
|
|
|
|
|
|
|
after_test:
|
|
|
|
# For debug build, the generated dll has a postfix "d" in its name.
|
|
|
|
- ps: >-
|
|
|
|
If ($env:configuration -Match "Debug") {
|
|
|
|
$env:SUFFIX="d"
|
|
|
|
} Else {
|
|
|
|
$env:SUFFIX=""
|
|
|
|
}
|
|
|
|
- cd install
|
|
|
|
# Zip all glslang artifacts for uploading and deploying
|
|
|
|
- 7z a glslang-master-windows-"%PLATFORM%"-"%CONFIGURATION%".zip
|
|
|
|
bin\glslangValidator.exe
|
2022-04-30 05:37:59 +00:00
|
|
|
bin\spirv-remap.exe
|
2018-06-02 07:26:43 +00:00
|
|
|
include\glslang\*
|
2022-04-30 05:37:59 +00:00
|
|
|
lib\GenericCodeGen%SUFFIX%.lib
|
2018-06-02 07:26:43 +00:00
|
|
|
lib\glslang%SUFFIX%.lib
|
2022-04-30 05:37:59 +00:00
|
|
|
lib\glslang-default-resource-limits%SUFFIX%.lib
|
2018-06-02 07:26:43 +00:00
|
|
|
lib\HLSL%SUFFIX%.lib
|
2022-04-30 05:37:59 +00:00
|
|
|
lib\MachineIndependent%SUFFIX%.lib
|
2018-06-02 07:26:43 +00:00
|
|
|
lib\OGLCompiler%SUFFIX%.lib
|
|
|
|
lib\OSDependent%SUFFIX%.lib
|
|
|
|
lib\SPIRV%SUFFIX%.lib
|
|
|
|
lib\SPVRemapper%SUFFIX%.lib
|
|
|
|
lib\SPIRV-Tools%SUFFIX%.lib
|
|
|
|
lib\SPIRV-Tools-opt%SUFFIX%.lib
|
|
|
|
|
|
|
|
artifacts:
|
|
|
|
- path: build\install\*.zip
|
|
|
|
name: artifacts-zip
|
|
|
|
|
|
|
|
deploy:
|
|
|
|
- provider: GitHub
|
|
|
|
auth_token:
|
|
|
|
secure: YglcSYdl0TylEa59H4K6lylBEDr586NAt2EMgZquSo+iuPrwgZQuJLPCoihSm9y6
|
|
|
|
release: master-tot
|
|
|
|
description: "Continuous build of the latest master branch by Appveyor and Travis CI"
|
|
|
|
artifact: artifacts-zip
|
|
|
|
draft: false
|
|
|
|
prerelease: false
|
|
|
|
force_update: true
|
|
|
|
on:
|
|
|
|
branch: master
|
2022-04-30 05:37:59 +00:00
|
|
|
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
|