1 build: off # No Visual Studio auto-build.
6 - TARGET: i686-pc-windows-msvc
8 fast_finish: true # Immediately finish build once one of the jobs fails.
10 - '%USERPROFILE%\.cargo'
11 - '%USERPROFILE%\.rustup'
21 # Compute the Rust version we use.
22 - set /p RUSTC_HASH=<rust-version
23 # Install Rust. We use the "stable" toolchain for better caching, it is just used to build `rustup-toolchain-install-master`.
24 # But we also need to take into account that the build cache might have a different, outdated default.
25 - curl -sSf --retry 3 -o rustup-init.exe https://win.rustup.rs/
26 - rustup-init.exe -y --default-host %TARGET% --default-toolchain none --profile minimal
27 - set PATH=%USERPROFILE%\.cargo\bin;%PATH%
28 - rustup default stable
29 - rustup toolchain uninstall beta nightly
31 # Install "master" toolchain.
32 - cargo install rustup-toolchain-install-master
33 - rustup-toolchain-install-master -f -n master %RUSTC_HASH% -c rust-src -c rustc-dev -c llvm-tools
34 - rustup default master
39 - set PYTHON=C:\msys64\mingw64\bin\python3.exe
43 # Don't cache "master" toolchain, it's a waste.
44 - rustup default stable
45 - rustup toolchain uninstall master
49 on_build_success: false