diff --git a/appveyor.yml b/appveyor.yml index 0182bfd8b6..f4109a97e3 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,13 +1,16 @@ environment: matrix: + - TARGET: x86_64-pc-windows-gnu + MSYS_BITS: 64 - TARGET: x86_64-pc-windows-msvc - TARGET: i686-pc-windows-msvc install: - - ps: Start-FileDownload "https://static.rust-lang.org/dist/rust-nightly-$%7Benv:TARGET%7D.exe" - - rust-nightly-%TARGET%.exe /VERYSILENT /NORESTART /DIR="C:\Program Files (x86)\Rust" - - set PATH=%PATH%;C:\Program Files (x86)\Rust\bin + - appveyor-retry appveyor DownloadFile https://win.rustup.rs/ -FileName rustup-init.exe + - rustup-init.exe -y --default-host x86_64-pc-windows-msvc + - set PATH=%PATH%;C:\Users\appveyor\.cargo\bin + - if NOT "%TARGET%" == "x86_64-pc-windows-msvc" rustup target add %TARGET% + - if defined MSYS_BITS set PATH=C:\msys64\mingw%MSYS_BITS%\bin;C:\msys64\usr\bin;%PATH% - - set CARGO_TARGET_DIR=%APPVEYOR_BUILD_FOLDER%\target - rustc -V - cargo -V