You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
1.2 KiB

  1. environment:
  2. matrix:
  3. - TARGET: x86_64-pc-windows-msvc
  4. SDL_TARGET: lib\x64
  5. SDL_COPY_PATTERN: SDL2*.lib
  6. - TARGET: i686-pc-windows-msvc
  7. SDL_TARGET: lib\x86
  8. SDL_COPY_PATTERN: SDL2*.lib
  9. - TARGET: i686-pc-windows-gnu
  10. SDL_TARGET: i686-w64-mingw32\lib
  11. SDL_COPY_PATTERN: libSDL2*
  12. install:
  13. - ps: Start-FileDownload "https://static.rust-lang.org/dist/rust-nightly-${env:TARGET}.exe"
  14. - rust-nightly-%TARGET%.exe /VERYSILENT /NORESTART /DIR="C:\Program Files (x86)\Rust"
  15. - SET PATH=%PATH%;C:\Program Files (x86)\Rust\bin
  16. - SET PATH=%PATH%;C:\MinGW\bin
  17. - ps: Start-FileDownload "https://www.libsdl.org/release/SDL2-devel-2.0.4-mingw.tar.gz"
  18. - ps: 7z x SDL2-devel-2.0.4-mingw.tar.gz
  19. - ps: 7z x SDL2-devel-2.0.4-mingw.tar
  20. - ps: Copy-Item "SDL2-2.0.4\${env:SDL_TARGET}\${env:SDL_COPY_PATTERN}" "C:\Program Files (x86)\Rust\lib\rustlib\${env:TARGET}\lib\"
  21. - rustc -V
  22. - cargo -V
  23. build: false
  24. test_script:
  25. - ps: New-Item c:\projects\rust64\target -type directory
  26. - ps: New-Item c:\projects\rust64\target\debug -type directory
  27. - ps: Copy-Item SDL2-2.0.4\i686-w64-mingw32\bin\SDL2.dll c:\projects\rust64\target\debug
  28. - cargo test --verbose