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