diff --git a/appveyor.yml b/appveyor.yml new file mode 100644 index 0000000..0be7382 --- /dev/null +++ b/appveyor.yml @@ -0,0 +1,36 @@ +environment: + RUST_TEST_THREADS: 1 + matrix: + - TARGET: x86_64-pc-windows-msvc + RUST_CHANNEL: 1.27.1 + 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" +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: true +build_script: + - cargo build --release --verbose +deploy: + release: myproduct-v$(appveyor_build_version) + description: 'Release description' + provider: GitHub + auth_token: + secure: $(GITHUB_TOKEN) # your encrypted token from GitHub + artifact: /.*\.nupkg/ # upload all NuGet packages to release assets + draft: false + prerelease: false + on: + branch: master # release from master branch only + # APPVEYOR_REPO_TAG: true # deploy on tag push only