- rustup target add i686-unknown-linux-gnu
- rustup target add i686-pc-windows-gnu
- rustup target add i686-pc-windows-msvc
-- rustup component add rust-src
-- cargo install xargo || echo "Skipping xargo install"
script:
- set -e
cargo test --release --all-features &&
cargo install --all-features --force --path .
- |
- # get ourselves a MIR-full libstd
- xargo/build.sh &&
- export MIRI_SYSROOT=~/.xargo/HOST
+ # starting here, use MIR-full libstd
+ cargo miri setup &&
+ export MIRI_SYSROOT=~/.miri/HOST
- |
# run all tests with full mir
cargo test --release --all-features
- rustup-init.exe -y --default-host %TARGET% --default-toolchain %RUST_TOOLCHAIN%
- set PATH=%USERPROFILE%\.cargo\bin;%PATH%
- rustc --version
- # Customize installation.
- - rustup component add rust-src
- - cargo install xargo
- # Prepare a libstd with MIR (cannot use bash script, obviously).
- # The flags here should be kept in sync with `add_miri_default_args` in `src/lib.rs`.
- - cd xargo
- - set RUSTFLAGS=-Zalways-encode-mir -Zmir-emit-retag -Zmir-opt-level=0
- - xargo build
- - set RUSTFLAGS=
- - cd ..
build: false
- set RUST_BACKTRACE=1
- cargo build --release --all-features --all-targets
- cargo test --release --all-features
- - set MIRI_SYSROOT=%USERPROFILE%\.xargo\HOST
+ - cargo run --release --all-features --bin cargo-miri -- miri setup
+ - set MIRI_SYSROOT=%USERPROFILE%\.miri\HOST
- cargo test --release --all-features
notifications: