diff --git a/README.md b/README.md index ce9838a..653fa9b 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ Currently requires SDL2, OpenSSL and **nightly** rust to build. `cargo build --release` -Windows users can download pre-compiled builds from here: https://ci.appveyor.com/project/thinkofdeath/steven-rust/branch/master +Windows users can download pre-compiled builds from here: https://ci.appveyor.com/project/iceiix/steven (Select your platform, Click the artifacts tab and download Steven.zip) The Visual Studio 2015 Redistributable is required to run these builds. diff --git a/appveyor.yml b/appveyor.yml new file mode 100644 index 0000000..f48e8a9 --- /dev/null +++ b/appveyor.yml @@ -0,0 +1,74 @@ +version: 1.0.{build} +image: Visual Studio 2015 +clone_depth: 1 +platform: + - x64 + - x86 +build_script: +- cmd: >- + echo on + + echo AddMessage "PLATFORM is %PLATFORM%" + + if "%PLATFORM%" == "x86" set RUST_INSTALL=i686-pc-windows-msvc + + if "%PLATFORM%" == "x64" set RUST_INSTALL=x86_64-pc-windows-msvc + + echo AddMessage "platform is %platform%" + + appveyor AddMessage "Platform rust: %RUST_INSTALL%" + + appveyor DownloadFile "https://static.rust-lang.org/dist/rust-nightly-%RUST_INSTALL%.exe" -FileName rust-install.exe + + "./rust-install.exe" /VERYSILENT /NORESTART /DIR="C:\Rust\" + + SET PATH=%PATH%;C:\Rust\bin + + rustc -V + + cargo -V + + + vcpkg integrate install + + vcpkg install openssl:%PLATFORM%-windows + + set VCPKGRS_DYNAMIC=1 + + + appveyor DownloadFile https://www.libsdl.org/release/SDL2-devel-2.0.4-VC.zip -FileName sdl2-dev.zip + + mkdir C:\sdl2 + + 7z x sdl2-dev.zip -oC:\sdl2\ -y + + cp C:\sdl2\SDL2-2.0.4\lib\%PLATFORM%\SDL2.lib C:\Rust\lib\rustlib\%RUST_INSTALL%\lib\SDL2.lib + + + cargo build + + mkdir dist-debug + + cp target\debug\steven.exe dist-debug + + cp C:\sdl2\SDL2-2.0.4\lib\%PLATFORM%\SDL2.dll dist-debug + + cp C:\tools\vcpkg\installed\%PLATFORM%-windows\bin\libeay32.dll dist-debug + + cp C:\tools\vcpkg\installed\%PLATFORM%-windows\bin\ssleay32.dll dist-debug + + + cargo build --release + + mkdir dist + + cp target\release\steven.exe dist + + cp C:\sdl2\SDL2-2.0.4\lib\%PLATFORM%\SDL2.dll dist + + cp C:\tools\vcpkg\installed\%PLATFORM%-windows\bin\libeay32.dll dist + + cp C:\tools\vcpkg\installed\%PLATFORM%-windows\bin\ssleay32.dll dist +artifacts: +- path: dist +- path: dist-debug