appveyor.yml 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. environment:
  2. # It's... a little unclear why the memcpy symbols clash on linux but not on
  3. # other platforms. Would be great to not differ on this though!
  4. INTRINSICS_FAILS_WITH_MEM_FEATURE: 1
  5. matrix:
  6. - TARGET: i686-pc-windows-msvc
  7. - TARGET: x86_64-pc-windows-msvc
  8. # Ensure MinGW works, but we need to download the 32-bit MinGW compiler from a
  9. # custom location.
  10. #
  11. # Note that the MinGW builds have tons of references to
  12. # `rust_eh_unwind_resume` in the debug LTO builds that aren't optimized out,
  13. # so we skip that test for now. Would be great to not skip it!
  14. - TARGET: i686-pc-windows-gnu
  15. MINGW_URL: https://s3-us-west-1.amazonaws.com/rust-lang-ci2/rust-ci-mirror
  16. MINGW_ARCHIVE: i686-6.3.0-release-win32-dwarf-rt_v5-rev1.7z
  17. MINGW_DIR: mingw32
  18. DEBUG_LTO_BUILD_DOESNT_WORK: 1
  19. - TARGET: x86_64-pc-windows-gnu
  20. DEBUG_LTO_BUILD_DOESNT_WORK: 1
  21. install:
  22. - git submodule update --init
  23. - appveyor-retry appveyor DownloadFile https://win.rustup.rs/ -FileName rustup-init.exe
  24. - rustup-init.exe --default-host x86_64-pc-windows-msvc --default-toolchain nightly -y
  25. - set PATH=%PATH%;C:\Users\appveyor\.cargo\bin
  26. - if NOT "%TARGET%" == "x86_64-pc-windows-msvc" rustup target add %TARGET%
  27. # Use the system msys
  28. - set PATH=C:\msys64\mingw64\bin;C:\msys64\usr\bin;%PATH%
  29. # download a custom compiler otherwise
  30. - if defined MINGW_URL appveyor DownloadFile %MINGW_URL%/%MINGW_ARCHIVE%
  31. - if defined MINGW_URL 7z x -y %MINGW_ARCHIVE% > nul
  32. - if defined MINGW_URL set PATH=C:\Python27;%CD%\%MINGW_DIR%\bin;C:\msys64\usr\bin;%PATH%
  33. - rustc -Vv
  34. - cargo -V
  35. build: false
  36. test_script:
  37. - sh ci/run.sh %TARGET%