diff options
author | Jim McGrath <jimmc2@gmail.com> | 2017-05-24 09:05:49 -0500 |
---|---|---|
committer | Jim McGrath <jimmc2@gmail.com> | 2017-05-24 09:06:10 -0500 |
commit | a289f09366fa53802968f6ec4c52062ccfcba98b (patch) | |
tree | 2da9e77d8613e2a098e1eb1454946b4680761cc4 /appveyor.yml | |
parent | df91eb85554120331a502f534c494086e03a994d (diff) | |
download | ssh2-rs-a289f09366fa53802968f6ec4c52062ccfcba98b.zip |
optionally use libssh2 from vcpkg for msvc abi builds
Diffstat (limited to 'appveyor.yml')
-rw-r--r-- | appveyor.yml | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/appveyor.yml b/appveyor.yml index 193095a..839859e 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -6,6 +6,9 @@ environment: MSYS_BITS: 32 - TARGET: x86_64-pc-windows-msvc - TARGET: i686-pc-windows-msvc + - TARGET: x86_64-pc-windows-msvc + RUSTFLAGS: -Ctarget-feature=+crt-static + VCPKG_DEFAULT_TRIPLET: x64-windows-static install: - ps: Start-FileDownload "https://static.rust-lang.org/dist/rust-nightly-${env:TARGET}.exe" - rust-nightly-%TARGET%.exe /VERYSILENT /NORESTART /DIR="C:\Program Files (x86)\Rust" @@ -13,6 +16,10 @@ install: - if defined MSYS_BITS set PATH=%PATH%;C:\msys64\mingw%MSYS_BITS%\bin;C:\msys64\usr\bin - rustc -V - cargo -V + - if defined VCPKG_DEFAULT_TRIPLET git clone https://github.com/Microsoft/vcpkg c:\projects\vcpkg + - if defined VCPKG_DEFAULT_TRIPLET c:\projects\vcpkg\bootstrap-vcpkg.bat + - if defined VCPKG_DEFAULT_TRIPLET set VCPKG_ROOT=c:\projects\vcpkg + - if defined VCPKG_DEFAULT_TRIPLET %VCPKG_ROOT%\vcpkg.exe install libssh2 build: false |