5 - TARGET: x86_64-pc-windows-msvc
6 - TARGET: i686-pc-windows-msvc
15 - '%USERPROFILE%\.cargo'
16 - '%USERPROFILE%\.rustup'
20 - curl -sSf -o rustup-init.exe https://win.rustup.rs/
21 - rustup-init.exe -y --default-host %TARGET% --default-toolchain stable
22 - set PATH=%USERPROFILE%\.cargo\bin;%PATH%
23 # Install "master" toolchain
24 - cargo install rustup-toolchain-install-master & exit 0
25 - set /p RUSTC_HASH=<rust-version
26 - rustup-toolchain-install-master -f -n master %RUSTC_HASH% -c cargo -c rust-src
27 - rustup default master
31 - set RUST_TEST_NOCAPTURE=1
32 - set RUST_BACKTRACE=1
33 - set RUSTFLAGS=-C debug-assertions
34 # Build and install miri
35 - cargo build --release --all-features --all-targets
36 - cargo install --all-features --force --path .
37 # Get ourselves a MIR-full libstd, and use it henceforth
39 - set MIRI_SYSROOT=%USERPROFILE%\AppData\Local\miri\miri\cache\HOST
43 - cargo test --release --all-features
44 # Test cargo integration
46 - '"C:\msys64\mingw64\bin\python3.exe" run-test.py'
49 # Don't cache "master" toolchain, it's a waste
50 - rustup default stable
51 - rustup toolchain uninstall master
55 on_build_success: false