Updated appveyor.yml to use rustup for installing Rust
This commit is contained in:
parent
a220528c15
commit
eaec9eff37
17
appveyor.yml
17
appveyor.yml
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue