Skip to content

Commit

Permalink
Add windows CI.
Browse files Browse the repository at this point in the history
Due to the linker troubles (#10), we only build the rlib and don't run any tests.
  • Loading branch information
dgrunwald committed Jun 27, 2015
1 parent 5414cfb commit a2eb6de
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
22 changes: 22 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
version: 0.0.{build}
environment:
CARGO_TARGET: x86_64-pc-windows-gnu
matrix:
- TARGET: x86_64-pc-windows-msvc
install:
- ps: Start-FileDownload "https://static.rust-lang.org/dist/rustc-nightly-${env:TARGET}.tar.gz"
- ps: Start-FileDownload "https://static.rust-lang.org/cargo-dist/cargo-nightly-${env:CARGO_TARGET}.tar.gz"
- 7z x rustc-nightly-%TARGET%.tar.gz > nul
- 7z x rustc-nightly-%TARGET%.tar > nul
- 7z x cargo-nightly-%CARGO_TARGET%.tar.gz > nul
- 7z x cargo-nightly-%CARGO_TARGET%.tar > nul
- call "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" amd64
- set PATH=%PATH%;%cd%/rustc-nightly-%TARGET%/rustc/bin
- set PATH=%PATH%;%cd%/cargo-nightly-%CARGO_TARGET%/cargo/bin
- rustc -V
- cargo -V
build_script:
- cargo build --verbose
test: false
#test_script:
# - cargo test --verbose
2 changes: 2 additions & 0 deletions python27-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,8 @@ print(sys.exec_prefix);";

if libpath != "None" {
println!("cargo:rustc-link-search=native={}", libpath);
} else if cfg!(target_os="windows") {
println!("cargo:rustc-link-search=native={}\\libs", exec_prefix);
}

let rel_interpreter_path = if cfg!(target_os="windows") {
Expand Down
2 changes: 2 additions & 0 deletions python3-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,8 @@ print(sys.exec_prefix);";

if libpath != "None" {
println!("cargo:rustc-link-search=native={}", libpath);
} else if cfg!(target_os="windows") {
println!("cargo:rustc-link-search=native={}\\libs", exec_prefix);
}

let rel_interpreter_path = if cfg!(target_os="windows") {
Expand Down

0 comments on commit a2eb6de

Please sign in to comment.