Merge pull request #84 from rust-bitcoin/travis-multi-os

Enable windows builds on travis
This commit is contained in:
Tim Ruffing 2018-12-07 23:37:37 +01:00 committed by GitHub
commit a7b2302e38
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 2 deletions

View File

@ -1,10 +1,23 @@
language: rust
cache: cargo
rust:
- stable
- beta
- nightly
- 1.14.0
cache: cargo
os:
- linux
- windows
matrix:
# rand 0.4 actually needs Rust 1.22, which leads to build failures on Rust 1.14 on Windows.
# This is not a problem, because
# - we insist on rust 1.14 only for Debian, and
# - "rand" is only an optional dependency.
exclude:
- rust: 1.14.0
os: windows
script:
- cargo build --verbose --features=fuzztarget

View File

@ -50,7 +50,7 @@ fn main() {
base_config.include("depend/secp256k1/")
.include("depend/secp256k1/include")
.include("depend/secp256k1/src")
.flag("-g")
.debug(true)
.flag_if_supported("-Wno-unused-function") // some ecmult stuff is defined but not used upstream
.define("SECP256K1_BUILD", Some("1"))
// TODO these three should be changed to use libgmp, at least until secp PR 290 is merged