compiler-builtins-zynq/appveyor.yml

43 lines
1.7 KiB
YAML

environment:
matrix:
- TARGET: i686-pc-windows-msvc
- TARGET: x86_64-pc-windows-msvc
# Ensure MinGW works, but we need to download the 32-bit MinGW compiler from a
# custom location.
- TARGET: i686-pc-windows-gnu
MINGW_URL: https://s3.amazonaws.com/rust-lang-ci
MINGW_ARCHIVE: i686-4.9.2-release-win32-dwarf-rt_v4-rev4.7z
MINGW_DIR: mingw32
- TARGET: x86_64-pc-windows-gnu
MSYS_BITS: 64
install:
- git submodule update --init
- appveyor-retry appveyor DownloadFile https://win.rustup.rs/ -FileName rustup-init.exe
- rustup-init.exe --default-host x86_64-pc-windows-msvc --default-toolchain nightly -y
- if NOT "%TARGET%" == "x86_64-pc-windows-msvc" rustup target add %TARGET%
# Use the system msys if we can
- if defined MSYS_BITS set PATH=C:\msys64\mingw%MSYS_BITS%\bin;C:\msys64\usr\bin;%PATH%
# download a custom compiler otherwise
- if defined MINGW_URL appveyor DownloadFile %MINGW_URL%/%MINGW_ARCHIVE%
- if defined MINGW_URL 7z x -y %MINGW_ARCHIVE% > nul
- if defined MINGW_URL set PATH=C:\Python27;%CD%\%MINGW_DIR%\bin;C:\msys64\usr\bin;%PATH%
- rustc -Vv
- cargo -V
build: false
test_script:
- cargo build --target %TARGET%
- cargo build --target %TARGET% --features c --example intrinsics
- cargo build --release --target %TARGET%
- cargo build --release --target %TARGET% --features c --example intrinsics
- cargo test --no-default-features --features gen-tests --target %TARGET%
- cargo test --no-default-features --features "gen-tests c" --target %TARGET%
- cargo test --no-default-features --features gen-tests --release --target %TARGET%
- cargo test --no-default-features --features "gen-tests c" --release --target %TARGET%