environment:
matrix:
- TARGET: x86_64-pc-windows-msvc
RUSTFLAGS: -C target-feature=-crt-static
- TARGET: x86_64-pc-windows-msvc
RUSTFLAGS: -C target-feature=+crt-static
- TARGET: i686-pc-windows-msvc
RUSTFLAGS: -C target-feature=-crt-static
- TARGET: i686-pc-windows-msvc
RUSTFLAGS: -C target-feature=+crt-static
install:
- appveyor-retry appveyor DownloadFile https://win.rustup.rs/ -FileName rustup-init.exe
- rustup-init.exe -y --default-host x86_64-pc-windows-msvc
- set PATH=%PATH%;C:\Users\appveyor\.cargo\bin
- if NOT "%TARGET%" == "x86_64-pc-windows-msvc" rustup target add %TARGET%
- if defined MSYS_BITS set PATH=C:\msys64\mingw%MSYS_BITS%\bin;C:\msys64\usr\bin;%PATH%
- rustc -vV
- cargo -vV
- git submodule update --init
build: false
test_script:
- cargo test --release --target %TARGET% --manifest-path testcrate/Cargo.toml
- cargo run --release --target %TARGET% --manifest-path testcrate/Cargo.toml --features package
after_test:
- ps: Get-ChildItem .\*.tar.gz | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name }
branches:
only:
- master