Skip to content

Commit a2eb6de

Browse files
committed
Add windows CI.
Due to the linker troubles (#10), we only build the rlib and don't run any tests.
1 parent 5414cfb commit a2eb6de

File tree

3 files changed

+26
-0
lines changed

3 files changed

+26
-0
lines changed

appveyor.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
version: 0.0.{build}
2+
environment:
3+
CARGO_TARGET: x86_64-pc-windows-gnu
4+
matrix:
5+
- TARGET: x86_64-pc-windows-msvc
6+
install:
7+
- ps: Start-FileDownload "https://static.rust-lang.org/dist/rustc-nightly-${env:TARGET}.tar.gz"
8+
- ps: Start-FileDownload "https://static.rust-lang.org/cargo-dist/cargo-nightly-${env:CARGO_TARGET}.tar.gz"
9+
- 7z x rustc-nightly-%TARGET%.tar.gz > nul
10+
- 7z x rustc-nightly-%TARGET%.tar > nul
11+
- 7z x cargo-nightly-%CARGO_TARGET%.tar.gz > nul
12+
- 7z x cargo-nightly-%CARGO_TARGET%.tar > nul
13+
- call "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" amd64
14+
- set PATH=%PATH%;%cd%/rustc-nightly-%TARGET%/rustc/bin
15+
- set PATH=%PATH%;%cd%/cargo-nightly-%CARGO_TARGET%/cargo/bin
16+
- rustc -V
17+
- cargo -V
18+
build_script:
19+
- cargo build --verbose
20+
test: false
21+
#test_script:
22+
# - cargo test --verbose

python27-sys/build.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,8 @@ print(sys.exec_prefix);";
264264

265265
if libpath != "None" {
266266
println!("cargo:rustc-link-search=native={}", libpath);
267+
} else if cfg!(target_os="windows") {
268+
println!("cargo:rustc-link-search=native={}\\libs", exec_prefix);
267269
}
268270

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

python3-sys/build.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,8 @@ print(sys.exec_prefix);";
264264

265265
if libpath != "None" {
266266
println!("cargo:rustc-link-search=native={}", libpath);
267+
} else if cfg!(target_os="windows") {
268+
println!("cargo:rustc-link-search=native={}\\libs", exec_prefix);
267269
}
268270

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

0 commit comments

Comments
 (0)