mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-25 06:41:31 +11:00
35 lines
623 B
YAML
35 lines
623 B
YAML
language: rust
|
|
|
|
rust:
|
|
- nightly
|
|
- stable
|
|
|
|
cache: cargo
|
|
|
|
addons:
|
|
apt:
|
|
packages:
|
|
- libxxf86vm-dev
|
|
|
|
install:
|
|
- |
|
|
if [ $TRAVIS_OS_NAME = osx ]; then
|
|
sh ~/rust-installer/rustup.sh -y --disable-sudo --prefix=/Users/travis/rust \
|
|
--add-target=x86_64-apple-ios
|
|
fi
|
|
|
|
script:
|
|
- cargo build --verbose
|
|
- if [ $TRAVIS_OS_NAME = osx ]; then cargo build --target x86_64-apple-ios --verbose; fi
|
|
- cargo test --verbose
|
|
|
|
os:
|
|
- linux
|
|
- osx
|
|
|
|
after_success:
|
|
- |
|
|
[ $TRAVIS_BRANCH = master ] &&
|
|
[ $TRAVIS_PULL_REQUEST = false ] &&
|
|
cargo publish --token ${CRATESIO_TOKEN}
|