5 - TARGET: i686-pc-windows-msvc
15 fast_finish: true # set this flag to immediately finish build once one of the jobs fails.
18 - '%USERPROFILE%\.cargo'
19 - '%USERPROFILE%\.rustup'
22 # Compute the rust version we use
23 - set /p RUSTC_HASH=<rust-version
25 - curl -sSf --retry 3 -o rustup-init.exe https://win.rustup.rs/
26 - rustup-init.exe -y --default-host %TARGET% --default-toolchain stable --profile minimal
27 - set PATH=%USERPROFILE%\.cargo\bin;%PATH%
28 - rustup default stable
29 - rustup toolchain uninstall beta
31 # Install "master" toolchain
32 - cargo install rustup-toolchain-install-master
33 # We need to install cargo here as well or else the DLL search path inside `cargo run`
34 # will be for the wrong toolchain. (On Unix, `./miri` takes care of this, but not here.)
35 - rustup-toolchain-install-master -f -n master %RUSTC_HASH% -c rust-src -c rustc-dev -c cargo
36 - rustup default master
41 - set RUSTFLAGS=-C debug-assertions
42 # Build and install miri
43 - cargo build --release --all-features --all-targets --locked
44 - cargo install --all-features --force --path . --locked --offline
47 - set RUST_TEST_NOCAPTURE=1
48 - set RUST_BACKTRACE=1
49 - set CARGO_INCREMENTAL=0
50 # Test host miri: 32bit Windows
52 - set MIRI_SYSROOT=%USERPROFILE%\AppData\Local\rust-lang\miri\cache\HOST
53 - cargo test --release --all-features --locked
55 - '"C:\msys64\mingw64\bin\python3.exe" run-test.py'
57 - ps: $env:MIRI_SYSROOT = ""
58 # Test foreign miri: 64bit Linux
59 - cargo miri setup --target x86_64-unknown-linux-gnu
60 - set MIRI_SYSROOT=%USERPROFILE%\AppData\Local\rust-lang\miri\cache
61 - set MIRI_TEST_TARGET=x86_64-unknown-linux-gnu
62 - cargo test --release --all-features --locked
64 - '"C:\msys64\mingw64\bin\python3.exe" run-test.py'
66 - ps: $env:MIRI_SYSROOT = ""
67 # Test foreign miri: 64bit macOS
68 - cargo miri setup --target x86_64-apple-darwin
69 - set MIRI_SYSROOT=%USERPROFILE%\AppData\Local\rust-lang\miri\cache
70 - set MIRI_TEST_TARGET=x86_64-apple-darwin
71 - cargo test --release --all-features --locked
73 - '"C:\msys64\mingw64\bin\python3.exe" run-test.py'
75 - ps: $env:MIRI_SYSROOT = ""
78 # Don't cache "master" toolchain, it's a waste
79 - rustup default stable
80 - rustup toolchain uninstall master
84 on_build_success: false