Merge pull request #373 from Michael-F-Bryan/appveyor

Updated appveyor.yml to use rustup for installing Rust
This commit is contained in:
Michał Budzyński 2017-07-08 11:25:29 +02:00 committed by GitHub
commit 9c21fe32c1
1 changed files with 10 additions and 7 deletions

View File

@ -20,13 +20,16 @@ environment:
# Install Rust and Cargo # Install Rust and Cargo
install: install:
- ps: Start-FileDownload "https://static.rust-lang.org/dist/channel-rust-stable" - ps: >-
- ps: $env:RUST_VERSION = Get-Content channel-rust-stable | select -first 1 | %{$_.split('-')[1]} If ($Env:TARGET -eq 'x86_64-pc-windows-gnu') {
- if NOT "%RUST_CHANNEL%" == "stable" set RUST_VERSION=%RUST_CHANNEL% $Env:PATH += ';C:\msys64\mingw64\bin'
- ps: Start-FileDownload "https://static.rust-lang.org/dist/rust-${env:RUST_VERSION}-${env:TARGET}.exe" } ElseIf ($Env:TARGET -eq 'i686-pc-windows-gnu') {
- rust-%RUST_VERSION%-%TARGET%.exe /VERYSILENT /NORESTART /DIR="C:\Program Files (x86)\Rust" $Env:PATH += ';C:\msys64\mingw32\bin'
- SET PATH=%PATH%;C:\Program Files (x86)\Rust\bin }
- rustc -V - curl -sSf -o rustup-init.exe https://win.rustup.rs/
- rustup-init.exe -y --default-host %TARGET% --default-toolchain %RUST_CHANNEL%
- set PATH=%PATH%;C:\Users\appveyor\.cargo\bin
- rustc -Vv
- cargo -V - cargo -V
build: false build: false