environment:
CARGO_HOME: "c:\\cargo"
RUSTUP_HOME: "c:\\rustup"
BINARY_NAME: "pyo3-pack.exe"
global:
RUST_BACKTRACE: full
PYO3_PACK_PASSWORD:
secure: 3xTkaAvLd84qjLwY/quMb0w1Kh5NRXQ0a/zHtjnH4WY=
matrix:
- TARGET: i686-pc-windows-msvc
CHANNEL: stable
- TARGET: x86_64-pc-windows-msvc
CHANNEL: stable
matrix:
fast_finish: true
install:
- cinst miniconda3
- ps: |
# For the gnu target we need gcc, provided by mingw. mingw which is already preinstalled,
# but we need the right version (32-bit or 64-bit) to the PATH.
# See https://www.appveyor.com/docs/build-environment/#mingw-msys-cygwin
if ($env:target -like "*-gnu") {
if ($env:target -like "x86_64-*") { # x86_64-pc-windows-gnu
$env:path += ";C:\msys64\mingw64\bin"
} else { # i686-pc-windows-gnu
$env:path += ";C:\msys64\mingw32\bin"
}
gcc --version
}
- appveyor-retry appveyor DownloadFile https://win.rustup.rs/ -FileName rustup-init.exe
- rustup-init.exe -y --default-host %TARGET% --default-toolchain %CHANNEL%
- SET PATH=%PATH%;%CARGO_HOME%\bin
- SET PATH=C:\Python36-x64\bin;%PATH%
- rustc -V
- cargo -V
test_script:
- cargo build
- ps: |
if ($env:channel -like "nightly") {
cargo test
}
before_deploy:
- cargo build --release --features password-storage
- cd target\release\
- 7z a ../../%APPVEYOR_PROJECT_SLUG%-%APPVEYOR_REPO_TAG_NAME%-%TARGET%.zip %BINARY_NAME%
- appveyor PushArtifact ../../%APPVEYOR_PROJECT_SLUG%-%APPVEYOR_REPO_TAG_NAME%-%TARGET%.zip
- cd ../..
- cargo run -- publish -b bin -u konstin
deploy:
- artifact: /.*\.zip/
auth_token:
secure: PQ91ezDbGmow+5tjZCAQ2/Y/2bHFffmQZoa5lr09JQIwARsAa2jHtucVn9826lWG
provider: GitHub
on:
CHANNEL: stable
appveyor_repo_tag: true
branches:
only:
- master
- /^v\d+\.\d+\.\d+.*$/
build: off