os: Visual Studio 2015
environment:
matrix:
- channel: stable
target: x86_64-pc-windows-msvc
- channel: stable
target: i686-pc-windows-msvc
- channel: stable
target: x86_64-pc-windows-gnu
- channel: stable
target: i686-pc-windows-gnu
install:
- appveyor DownloadFile https://win.rustup.rs/ -FileName rustup-init.exe
- rustup-init -yv --default-toolchain %channel% --default-host %target%
- set PATH=%PATH%;%USERPROFILE%\.cargo\bin
- rustc -vV
- cargo -vV
build: false
test_script: cargo test --verbose %cargoflags%
before_deploy:
- cargo build --release
- mkdir staging
- copy target\release\rnr.exe staging
- ps: copy target\release\build\rnr-*\out\_rnr.ps1 staging
- copy README.md staging
- copy LICENSE staging
- cd staging
- 7z a ../rnr-%APPVEYOR_REPO_TAG_NAME%-%TARGET%.zip *
- appveyor PushArtifact ../rnr-%APPVEYOR_REPO_TAG_NAME%-%TARGET%.zip
deploy:
description: 'Automated release'
artifact: /.*\.zip/
auth_token:
secure: Tz4TKacVOJpbdd6rJ/MsgYAR/vr/OkbafruG3yAQA5nymwBoenVPMowjRRS0g3WW
provider: GitHub
on:
CHANNEL: stable
appveyor_repo_tag: true
matrix:
fast_finish: true