forked from libpnet/libpnet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
54 lines (53 loc) · 2.48 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
43
44
45
46
47
48
49
50
51
52
53
54
environment:
RUST_TEST_THREADS: 1
matrix:
- TARGET: x86_64-pc-windows-msvc
RUST_CHANNEL: 1.15.0
WPD_LIB_PATH: "C:/dl/wpdpack/WpdPack/Lib/x64/Packet.lib"
VCVARS: "C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\bin\\amd64\\vcvars64.bat"
- TARGET: i686-pc-windows-msvc
RUST_CHANNEL: 1.15.0
WPD_LIB_PATH: "C:/dl/wpdpack/WpdPack/Lib/Packet.lib"
VCVARS: "C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\bin\\vcvars32.bat"
- TARGET: x86_64-pc-windows-msvc
RUST_CHANNEL: 1.20.0
WPD_LIB_PATH: "C:/dl/wpdpack/WpdPack/Lib/x64/Packet.lib"
VCVARS: "C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\bin\\amd64\\vcvars64.bat"
- TARGET: i686-pc-windows-msvc
RUST_CHANNEL: 1.20.0
WPD_LIB_PATH: "C:/dl/wpdpack/WpdPack/Lib/Packet.lib"
VCVARS: "C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\bin\\vcvars32.bat"
- TARGET: x86_64-pc-windows-msvc
RUST_CHANNEL: beta
WPD_LIB_PATH: "C:/dl/wpdpack/WpdPack/Lib/x64/Packet.lib"
VCVARS: "C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\bin\\amd64\\vcvars64.bat"
- TARGET: i686-pc-windows-msvc
RUST_CHANNEL: beta
WPD_LIB_PATH: "C:/dl/wpdpack/WpdPack/Lib/Packet.lib"
VCVARS: "C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\bin\\vcvars32.bat"
- TARGET: x86_64-pc-windows-msvc
RUST_CHANNEL: nightly
WPD_LIB_PATH: "C:/dl/wpdpack/WpdPack/Lib/x64/Packet.lib"
VCVARS: "C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\bin\\amd64\\vcvars64.bat"
- TARGET: i686-pc-windows-msvc
RUST_CHANNEL: nightly
WPD_LIB_PATH: "C:/dl/wpdpack/WpdPack/Lib/Packet.lib"
VCVARS: "C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\bin\\vcvars32.bat"
install:
- ps: mkdir C:/dl
- curl -o "C:/dl/wpd.zip" "https://www.winpcap.org/install/bin/WpdPack_4_1_2.zip"
- ps: Add-Type -AssemblyName system.io.compression.filesystem
- ps: "[io.compression.zipfile]::ExtractToDirectory(\"C:/dl/wpd.zip\", \"C:/dl/wpdpack\")"
- ps: mkdir ${env:APPVEYOR_BUILD_FOLDER}/lib
- ps: cp ${env:WPD_LIB_PATH} ${env:APPVEYOR_BUILD_FOLDER}/lib
- ps: Start-FileDownload "https://static.rust-lang.org/dist/rust-${env:RUST_CHANNEL}-${env:TARGET}.exe"
- rust-%RUST_CHANNEL%-%TARGET%.exe /VERYSILENT /NORESTART /DIR="C:\Program Files (x86)\Rust"
- CALL "%VCVARS%"
- SET PATH=%PATH%;C:\Program Files (x86)\Rust\bin
- choco install winpcap
- rustc -V
- cargo -V
build: false
test_script:
- cargo test --verbose --features appveyor
skip_branch_with_pr: true