]> git.lizzy.rs Git - rust.git/blob - .appveyor.yml
use real align_offset unless we symbolic alignment check is enabled
[rust.git] / .appveyor.yml
1 build: off # No Visual Studio auto-build.
2 environment:
3   global:
4     PROJECT_NAME: miri
5   matrix:
6     - TARGET: i686-pc-windows-msvc
7 matrix:
8   fast_finish: true # Immediately finish build once one of the jobs fails.
9 cache:
10 - '%USERPROFILE%\.cargo'
11 - '%USERPROFILE%\.rustup'
12
13 # branches to build
14 branches:
15   # whitelist
16   only:
17   - auto
18   - try
19
20 install:
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
30 - rustup update
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
35 - rustc --version
36 - cargo --version
37
38 test_script:
39 - set PYTHON=C:\msys64\mingw64\bin\python3.exe
40 - bash ci.sh
41
42 after_test:
43 # Don't cache "master" toolchain, it's a waste.
44 - rustup default stable
45 - rustup toolchain uninstall master
46
47 notifications:
48 - provider: Email
49   on_build_success: false