2019-03-04 15:53:35 +00:00
|
|
|
environment:
|
2019-03-04 16:07:40 +00:00
|
|
|
SSL_CERT_FILE: "C:\\OpenSSL\\cacert.pem"
|
2019-03-04 15:53:35 +00:00
|
|
|
RUSTUP_USE_HYPER: 1
|
|
|
|
CARGO_HTTP_CHECK_REVOKE: false
|
|
|
|
GITHUB_TOKEN:
|
|
|
|
secure: jqZ4q5oOthKX/pBL1tRsBJsfGPIee3q+N/UBSCZNjCrlFUNfQSfibBPzzICYg1he
|
|
|
|
|
|
|
|
matrix:
|
|
|
|
- TARGET: x86_64-pc-windows-msvc
|
2019-03-04 16:07:40 +00:00
|
|
|
BITS: 64
|
|
|
|
OPENSSL_VERSION: 1_1_0j
|
|
|
|
OPENSSL_DIR: C:\OpenSSL
|
2019-03-04 15:53:35 +00:00
|
|
|
|
|
|
|
install:
|
2019-03-04 16:07:40 +00:00
|
|
|
# Install OpenSSL
|
|
|
|
- mkdir C:\OpenSSL
|
|
|
|
- ps: if (Test-Path env:OPENSSL_VERSION) { Start-FileDownload "http://slproweb.com/download/Win${env:BITS}OpenSSL-${env:OPENSSL_VERSION}.exe" }
|
|
|
|
- if defined OPENSSL_VERSION Win%BITS%OpenSSL-%OPENSSL_VERSION%.exe /SILENT /VERYSILENT /SP- /DIR="C:\OpenSSL"
|
|
|
|
- appveyor DownloadFile https://curl.haxx.se/ca/cacert.pem -FileName C:\OpenSSL\cacert.pem
|
|
|
|
|
|
|
|
# Install Rust
|
2019-03-04 15:53:35 +00:00
|
|
|
- appveyor-retry appveyor DownloadFile https://win.rustup.rs/ -FileName rustup-init.exe
|
|
|
|
- rustup-init.exe -y --default-host x86_64-pc-windows-msvc --default-toolchain nightly
|
|
|
|
- set PATH=%PATH%;C:\Users\appveyor\.cargo\bin
|
|
|
|
- rustc -V
|
|
|
|
- cargo -V
|
|
|
|
- git submodule update --init
|
|
|
|
|
|
|
|
clone_depth: 1
|
|
|
|
|
|
|
|
build_script:
|
|
|
|
# - cargo check --verbose
|
|
|
|
# - cargo check --no-default-features --features send2 --verbose
|
|
|
|
# - cargo check --no-default-features --features send3 --verbose
|
|
|
|
# - cargo check --features no-color --verbose
|
|
|
|
# - cargo test --verbose
|
2019-03-04 16:37:54 +00:00
|
|
|
- set OPENSSL_STATIC=1
|
2019-03-04 15:53:35 +00:00
|
|
|
- cargo build --release --verbose
|
|
|
|
|
|
|
|
test: false
|
|
|
|
|
|
|
|
artifacts:
|
|
|
|
- path: target/release/ffsend.exe
|