environment:
  matrix:
  - TARGET: 1.7.0-x86_64-pc-windows-msvc
  - TARGET: 1.7.0-x86_64-pc-windows-gnu
  - TARGET: nightly-x86_64-pc-windows-msvc
  - TARGET: nightly-x86_64-pc-windows-gnu
install:
  - ps: Start-FileDownload "https://static.rust-lang.org/dist/rust-${env:TARGET}.exe" -FileName "rust-install.exe"
  - ps: .\rust-install.exe /VERYSILENT /NORESTART /DIR="C:\rust" | Out-Null
  - ps: $env:PATH="$env:PATH;C:\rust\bin;C:\MinGW\bin"
  - gcc -v
  - rustc -vV
  - cargo -vV
build_script:
  - cargo build
test_script:
  - cargo test

environment:
  matrix:
  - TARGET: 1.7.0-x86_64-pc-windows-msvc
  - TARGET: 1.7.0-x86_64-pc-windows-gnu
  - TARGET: nightly-x86_64-pc-windows-msvc
  - TARGET: nightly-x86_64-pc-windows-gnu
install:
  - choco install -y mingw
  - ps: Start-FileDownload "https://static.rust-lang.org/dist/rust-${env:TARGET}.exe" -FileName "rust-install.exe"
  - ps: .\rust-install.exe /VERYSILENT /NORESTART /DIR="C:\rust" | Out-Null
  - ps: $env:PATH="$env:PATH;C:\rust\bin;C:\tools\mingw64\bin"
  - gcc -v
  - rustc -vV
  - cargo -vV
build_script:
  - cargo build
test_script:
  - cargo test

Install and use 64-bit compiler
Install and use 64-bit compiler