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