environment:
VisualStudioVersion: 8.0
global:
PROJECT_NAME: polylabel-rs
CMD_IN_ENV: "cmd /E:ON /V:ON /C .\\ci\\run_with_env.cmd"
matrix:
- TARGET: x86_64-pc-windows-gnu
CHANNEL: stable
- TARGET: i686-pc-windows-gnu
CHANNEL: stable
- TARGET: x86_64-pc-windows-gnu
CHANNEL: beta
- TARGET: x86_64-pc-windows-gnu
CHANNEL: nightly
install:
- curl -sSf -o rustup-init.exe https://win.rustup.rs
- rustup-init.exe --default-host %TARGET% --default-toolchain %CHANNEL% -y
- set PATH=%PATH%;C:\Users\appveyor\.cargo\bin;C:\mingw-w64\i686-5.3.0-posix-dwarf-rt_v4-rev0\mingw32\bin
- rustc -Vv
- cargo -V
build: false
test_script:
- cargo test
artifacts:
- path: staging
before_deploy:
- cargo rustc --release -- -C target-cpu=native -C link-args=-Wl,--out-implib,polylabel.a
- dlltool -z target\release\polylabel.def --export-all-symbols target\release\polylabel.dll
- ps: ls target\release
- mkdir staging
- copy target\release\polylabel* staging
- cd staging
- 7z a ../%PROJECT_NAME%-%APPVEYOR_REPO_TAG_NAME%-%TARGET%.zip *
- appveyor PushArtifact ../%PROJECT_NAME%-%APPVEYOR_REPO_TAG_NAME%-%TARGET%.zip
deploy:
appveyor_repo_tag: true
tag: $(APPVEYOR_REPO_TAG_NAME)
release: $(APPVEYOR_REPO_TAG_NAME)
description: 'Binaries'
provider: GitHub
auth_token:
secure: mJlu7lwGqi3BVMm8IyWdRrzhmHqTSCMz0LacJUovMrq6MdHrAiHqkts3fS1EuoD0
artifact: /.*\.zip/
draft: false
prerelease: false
on:
appveyor_repo_tag: true
CHANNEL: stable
branches:
only:
- master
- /v\d\.\d\.\d/