2018-10-26 08:53:11 +00:00
|
|
|
language:
|
|
|
|
- cpp
|
|
|
|
- python
|
2016-12-08 10:26:36 +00:00
|
|
|
|
2018-10-26 08:53:11 +00:00
|
|
|
python: 3.7
|
|
|
|
|
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- os: linux
|
|
|
|
dist: trusty
|
|
|
|
compiler: gcc
|
|
|
|
env:
|
|
|
|
- GENERATOR="Unix Makefiles"
|
2019-05-14 08:52:13 +00:00
|
|
|
- ARTIFACT=gcc-trusty-64bit
|
2018-10-26 08:53:11 +00:00
|
|
|
- os: linux
|
|
|
|
dist: trusty
|
|
|
|
compiler: clang
|
|
|
|
env:
|
|
|
|
- GENERATOR="Unix Makefiles"
|
2019-05-14 08:52:13 +00:00
|
|
|
- ARTIFACT=clang-trusty-64bit
|
2018-10-26 08:53:11 +00:00
|
|
|
- os: osx
|
|
|
|
compiler: clang
|
|
|
|
osx_image: xcode10
|
|
|
|
env:
|
|
|
|
- GENERATOR="Unix Makefiles"
|
2019-05-14 08:52:13 +00:00
|
|
|
- ARTIFACT=clang-macos-64bit
|
2018-10-26 08:53:11 +00:00
|
|
|
- os: windows
|
|
|
|
before_install:
|
|
|
|
- choco install python3
|
|
|
|
- export PATH="/c/Python37:/c/Python37/Scripts:$PATH"
|
|
|
|
env:
|
|
|
|
- GENERATOR="Visual Studio 15 2017"
|
2019-05-14 08:52:13 +00:00
|
|
|
- ARTIFACT=vs2017-32bit
|
2018-10-26 08:53:11 +00:00
|
|
|
- os: windows
|
|
|
|
before_install:
|
|
|
|
- choco install python3
|
|
|
|
- export PATH="/c/Python37:/c/Python37/Scripts:$PATH"
|
|
|
|
env:
|
|
|
|
- GENERATOR="Visual Studio 15 2017 Win64"
|
2019-05-14 08:52:13 +00:00
|
|
|
- ARTIFACT=vs2017-64bit
|
2016-12-08 10:26:36 +00:00
|
|
|
|
|
|
|
before_script:
|
2019-05-14 08:52:13 +00:00
|
|
|
- "./checkout_glslang_spirv_tools.sh"
|
2016-12-08 10:26:36 +00:00
|
|
|
|
|
|
|
script:
|
2018-10-26 08:53:11 +00:00
|
|
|
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then PYTHON3=$(which python); fi
|
|
|
|
- if [[ "$TRAVIS_OS_NAME" != "windows" ]]; then PYTHON3=$(which python3); fi
|
2019-05-14 08:52:13 +00:00
|
|
|
- "./build_glslang_spirv_tools.sh Release"
|
2018-10-26 08:53:11 +00:00
|
|
|
- mkdir build
|
|
|
|
- cd build
|
2019-03-07 09:22:58 +00:00
|
|
|
- cmake .. -DSPIRV_CROSS_SHARED=ON -DCMAKE_INSTALL_PREFIX=output -DCMAKE_BUILD_TYPE=Release -G "${GENERATOR}" -DPYTHON_EXECUTABLE:FILEPATH="${PYTHON3}" -DSPIRV_CROSS_ENABLE_TESTS=ON
|
2018-10-27 10:02:58 +00:00
|
|
|
- cmake --build . --config Release
|
2019-03-04 10:39:27 +00:00
|
|
|
- cmake --build . --config Release --target install
|
2019-03-07 09:22:58 +00:00
|
|
|
- ctest --verbose -C Release
|
2019-05-14 08:52:13 +00:00
|
|
|
- cd ..
|
|
|
|
|
|
|
|
before_deploy:
|
|
|
|
- REV=${ARTIFACT}-$(git rev-parse --short=10 HEAD)
|
|
|
|
- cd build/output
|
|
|
|
- tar cf spirv-cross-${REV}.tar *
|
|
|
|
- gzip spirv-cross-${REV}.tar
|
|
|
|
- cd ../..
|
|
|
|
- export FILE_TO_UPLOAD=build/output/spirv-cross-${REV}.tar.gz
|
|
|
|
|
|
|
|
deploy:
|
|
|
|
provider: releases
|
|
|
|
api_key:
|
|
|
|
secure: c7YEOyzhE19TFo76UnbLWk/kikRQxsHsOxzkOqN6Q2aL8joNRw5kmcG84rGd+Rf6isX62cykCzA6qHkyJCv9QTIzcyXnLju17rLvgib7cXDcseaq8x4mFvet2yUxCglthDpFY2M2LB0Aqws71lPeYIrKXa6hCFEh8jO3AWxnaor7O3RYfNZylM9d33HgH6KLT3sDx/cukwBstmKeg7EG9OUnrSvairkPW0W2+jlq3SXPlq/WeVhf8hQs3Yg0BluExGbmLOwe9EaeUpeGuJMyHRxXypnToQv1/KwoScKpap5tYxdNWiwRGZ4lYcmKrjAYVvilTioh654oX5LQpn34mE/oe8Ko9AaATkSaoiisRFp6meWtnB39oFBoL5Yn15DqLQpRXPr1AJsnBXSGAac3aDBO1j4MIqTHmYlYlfRw3n2ZsBaFaTZnv++438SNQ54nkivyoDTIWjoOmYa9+K4mQc3415RDdQmjZTJM+lu+GAlMmNBTVbfNvrbU55Usu9Lo6BZJKKdUMvdBB78kJ5FHvcBlL+eMgmk1pABQY0IZROCt7NztHcv1UmAxoWNxveSFs5glydPNNjNS8bogc4dzBGYG0KMmILbBHihVbY2toA1M9CMdDHdp+LucfDMmzECmYSEmlx0h8win+Jjb74/qpOhaXuUZ0NnzVgCOyeUYuMQ=
|
|
|
|
file: "${FILE_TO_UPLOAD}"
|
|
|
|
skip_cleanup: true
|
|
|
|
on:
|
|
|
|
repo: KhronosGroup/SPIRV-Cross
|
|
|
|
draft: true
|