瀏覽代碼

Merge pull request #56 from japaric/appveyor

appveyor: use rustup
Jorge Aparicio 8 年之前
父節點
當前提交
6c5dfe9f20
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      appveyor.yml

+ 3 - 3
appveyor.yml

@@ -4,9 +4,9 @@ environment:
     - TARGET: x86_64-pc-windows-msvc
 
 install:
-  - ps: Start-FileDownload "https://static.rust-lang.org/dist/rust-nightly-${env:TARGET}.exe"
-  - rust-nightly-%TARGET%.exe /VERYSILENT /NORESTART /DIR="C:\Program Files (x86)\Rust"
-  - SET PATH=%PATH%;C:\Program Files (x86)\Rust\bin
+  - curl -sSf -o rustup-init.exe https://win.rustup.rs
+  - rustup-init.exe --default-host %TARGET% --default-toolchain nightly -y
+  - set PATH=%PATH%;C:\Users\appveyor\.cargo\bin
   - gem install gist
   - rustc -Vv
   - cargo -V