forked from rust-rosetta/rust-rosetta
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
42 lines (37 loc) · 1.42 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
environment:
OPENSSL_LIBS: ssleay32:libeay32
RUST_DIR: C:\Rust\
matrix:
- TARGET: x86_64-pc-windows-msvc
BITS: 64
- TARGET: i686-pc-windows-msvc
BITS: 32
- TARGET: i686-pc-windows-gnu
BITS: 32
shallow_clone: true
cache:
- target
- '%USERPROFILE%\.cargo'
install:
- ps: Start-FileDownload "https://static.rust-lang.org/dist/rust-nightly-${env:TARGET}.msi"
- msiexec /i rust-nightly-%TARGET%.msi /quiet /passive /qn /norestart INSTALLDIR=%RUST_DIR%
- SET PATH=%PATH%;%RUST_DIR%\bin
- SET PATH=%PATH%;C:\MinGW\bin
- SET OPENSSL_INCLUDE_DIR=C:\OpenSSL-Win%BITS%\include
- SET OPENSSL_LIB_DIR=C:\OpenSSL-Win%BITS%\lib
- rustc -V
- cargo -V
build: false
test_script:
# The copy helps DLL search resolve compatible versions of OpenSSL DLLs for
# the build target executable. This works around the AppVeyor build
# environment preferring to load DLLs that would be incompatible with 64-bit
# build configurations.
- ps: cp -path "C:\OpenSSL-Win${env:BITS}\*.dll" -destination (md -force "$env:APPVEYOR_BUILD_FOLDER\target\debug")
- cargo test
# Also copy the correct OpenSSL DLLs to the build target path of the coverage
# crate. They should be preferred by DLL resolution to prevent platform
# binary mismatch errors during runtime.
- ps: cp -path "C:\OpenSSL-Win${env:BITS}\*.dll" -destination (md -force "$env:APPVEYOR_BUILD_FOLDER\coverage\target\debug")
- cd coverage
- cargo test