wgpu/.travis.yml

114 lines
3.8 KiB
YAML
Raw Normal View History

2018-09-14 15:39:24 +00:00
language: rust
2019-05-10 18:42:48 +00:00
sudo: false
dist: xenial
2019-03-09 19:38:56 +00:00
matrix:
include:
# Linux 64bit
- os: linux
rust: stable
compiler: gcc
2020-01-23 12:35:46 +00:00
env:
- BUILD_COMMAND=clippy
2019-05-10 18:42:48 +00:00
#TODO: unlock when libglfw3 on Ubuntu comes with Vulkan support
# or when we add a GL backend.
#- os: linux
# rust: nightly
# compiler: gcc
2020-01-23 12:35:46 +00:00
# env:
# - BUILD_COMMAND=check
2019-03-19 14:49:30 +00:00
# Windows 64bit
- os: windows
rust: stable
2020-01-23 12:35:46 +00:00
env:
- BUILD_COMMAND=clippy
2019-06-05 00:39:58 +00:00
- os: windows
rust: nightly
2020-01-23 12:35:46 +00:00
env:
- BUILD_COMMAND=check
2019-03-09 19:38:56 +00:00
# macOS 64bit
2020-01-23 12:35:46 +00:00
- os: osx
2019-04-25 12:29:53 +00:00
osx_image: xcode9.4
2020-01-23 12:35:46 +00:00
rust: stable
2019-03-09 19:38:56 +00:00
compiler: clang
2020-01-23 12:35:46 +00:00
env:
- MACOSX_DEPLOYMENT_TARGET=10.9
- BUILD_COMMAND=clippy
- os: osx
2019-05-10 18:42:48 +00:00
osx_image: xcode9.4
2020-01-23 12:35:46 +00:00
rust: nightly
2019-05-10 18:42:48 +00:00
compiler: clang
2020-01-23 12:35:46 +00:00
env:
- MACOSX_DEPLOYMENT_TARGET=10.9
- BUILD_COMMAND=check
2019-03-09 19:38:56 +00:00
# iPhoneOS 64bit
2020-01-23 12:35:46 +00:00
- os: osx
2019-08-30 12:54:29 +00:00
osx_image: xcode11
rust: stable
2020-01-23 12:35:46 +00:00
env:
- TARGET=aarch64-apple-ios
- BUILD_COMMAND=clippy
2019-03-09 19:38:56 +00:00
2019-05-10 18:42:48 +00:00
addons:
apt:
packages:
- cmake
- libglfw3-dev
homebrew:
update: true
packages:
- cmake
- glfw3
2018-09-14 15:39:24 +00:00
branches:
except:
2019-03-09 19:38:56 +00:00
- staging.tmp
2018-09-14 15:39:24 +00:00
before_install:
2019-06-05 00:39:58 +00:00
- if [[ $TRAVIS_OS_NAME == "windows" ]]; then choco install make; fi
- if [[ $TRAVIS_RUST_VERSION != "nightly" ]] && [[ $TRAVIS_OS_NAME == "windows" ]]; then rustup default stable-msvc; fi
- if [[ $TRAVIS_RUST_VERSION == "nightly" ]] && [[ $TRAVIS_OS_NAME == "windows" ]]; then rustup default nightly-msvc; fi
2020-01-17 16:58:42 +00:00
before_script:
2020-01-23 12:35:46 +00:00
- if [[ $BUILD_COMMAND == "clippy" ]]; then rustup component add clippy; fi
2020-01-17 16:58:42 +00:00
script:
- cargo test
# TODO: enable GL backend
2020-01-23 12:35:46 +00:00
- (cd wgpu-core && cargo $BUILD_COMMAND --all-features)
- (cd wgpu-native && cargo $BUILD_COMMAND)
- (cd wgpu-remote && cargo $BUILD_COMMAND --all-features)
- if [[ $TRAVIS_OS_NAME == "osx" ]]; then (cd wgpu-native && cargo $BUILD_COMMAND --features vulkan-portability); fi
- if [[ $TRAVIS_OS_NAME == "linux" ]]; then cargo $BUILD_COMMAND --release; fi
2019-06-05 11:50:59 +00:00
- if [[ $TRAVIS_RUST_VERSION == "nightly" ]]; then cargo +nightly install cbindgen; fi
2019-06-05 00:39:58 +00:00
- if [[ $TRAVIS_RUST_VERSION == "nightly" ]] && [[ $TRAVIS_OS_NAME == "windows" ]]; then
wget -nc -O glfw.zip https://github.com/glfw/glfw/archive/3.3.zip &&
7z x glfw.zip -oglfw &&
cd glfw/glfw-3.3 &&
export GLFW3_INCLUDE_DIR=`pwd`/include &&
export GLFW3_INSTALL_DIR=`pwd`/install &&
cmake . -DCMAKE_INSTALL_PREFIX=$GLFW3_INSTALL_DIR -DCMAKE_GENERATOR_PLATFORM=x64 &&
cmake --build . --target install &&
cd ../.. &&
export CMAKE_PREFIX_PATH=$GLFW3_INSTALL_DIR &&
make example-compute example-triangle VERBOSE=1;
2019-06-05 00:39:58 +00:00
fi
2019-06-05 11:50:59 +00:00
- if [[ $TRAVIS_RUST_VERSION == "nightly" ]] && [[ $TRAVIS_OS_NAME != "windows" ]]; then make VERBOSE=1; fi
2019-12-24 13:52:19 +00:00
- if [[ $TRAVIS_RUST_VERSION == "stable" ]]; then make package; fi
deploy:
provider: releases
api_key:
2020-01-04 06:21:08 +00:00
secure: GcBxH6M6X9UU+5QBR4nEdNbXDfGpCrggZkPaztfK1vGAjmOyvHnK6P3M00C5Pf0nLmyWhGT5P0I4Rpy0z8WyQLOaHNWUuRGlRqlehWiJEmi6MpS2O8noJEfbLut9vYPpl0sdrtFrU5e0F77fWm5UWYQLMaeqXj66xv4lVxZp/JkXwhChTpU0PRJtSBuYiLFzbwz9CEjsvBXjw5ZzxmGTHnbw5p19B63yy3mORV91QQrRfCAHMg9z9zthpoZHEGqXXTIFuvh1DZqC5SHhUbt865MHMJS/2IaPH5zA/fOzZCCk6IvbNKLJ/ghE0zRJjHeVU4vjxNMxrFEBKVFCmQB7CpTqGCLy2qTB0tnSmNzqY82xUehl23jZ0LxnKODzCjx4hgfskWnr5p7Pv1Ql9UcAZXDV8UG+7JL34BQY4yyvknpTxK4MTXN9ZNahKJv+zSB9jDuLnB6uVbNV1hwFOUNm7KyAWA7XjFN7k8p4h678Xfg+EUWYxtV1auOItuXdxvzMWgDUDGmk74FdUWxy+GVzjboAmBMVRW/KMQFp4INIaS0gPRPK/jodLqrrZ+1otgYvMM/CsnOh4GLl86RTewuyid2jNnUeXepHPuU+JsDLLCJfyYoAfSxDCdQEuqNLAvpFPJJrBcWREVoqXWVUlWmwhEIWbLRUi2l5AhHnu+PfVhE=
skip_cleanup: true
overwrite: true
2020-01-04 06:21:08 +00:00
file_glob: true
file: dist/wgpu-*.zip
on:
2020-01-04 06:21:08 +00:00
repo: gfx-rs/wgpu
tags: true
2020-01-04 06:21:08 +00:00
condition: $TRAVIS_RUST_VERSION == "stable" && $TRAVIS_BRANCH == $TRAVIS_TAG && ${TRAVIS_TAG::1} == "v"