Skip to content
Myr

Add appveyor.yml file

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by sharkdp · committed by sharkdp · parent 89124b3 · Browse files · 1 file+87 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+87 added−0 removed

  • other:+87 added−0 removed

1 file+87 added−0 removed

added:appveyor.yml+87 added
1environment:2 global:3 PROJECT_NAME: fd4 matrix:5 # Stable channel6 - TARGET: i686-pc-windows-gnu7 CHANNEL: stable8 - TARGET: i686-pc-windows-msvc9 CHANNEL: stable10 - TARGET: x86_64-pc-windows-gnu11 CHANNEL: stable12 - TARGET: x86_64-pc-windows-msvc13 CHANNEL: stable14 # Beta channel15 - TARGET: i686-pc-windows-gnu16 CHANNEL: beta17 - TARGET: i686-pc-windows-msvc18 CHANNEL: beta19 - TARGET: x86_64-pc-windows-gnu20 CHANNEL: beta21 - TARGET: x86_64-pc-windows-msvc22 CHANNEL: beta23 # Nightly channel24 - TARGET: i686-pc-windows-gnu25 CHANNEL: nightly26 - TARGET: i686-pc-windows-msvc27 CHANNEL: nightly28 - TARGET: x86_64-pc-windows-gnu29 CHANNEL: nightly30 - TARGET: x86_64-pc-windows-msvc31 CHANNEL: nightly3233# Install Rust and Cargo34# (Based on from https://github.com/rust-lang/libc/blob/master/appveyor.yml)35install:36 - curl -sSf -o rustup-init.exe https://win.rustup.rs37 - rustup-init.exe --default-host %TARGET% --default-toolchain %CHANNEL% -y38 - set PATH=%PATH%;C:\Users\appveyor\.cargo\bin39 - rustc -Vv40 - cargo -V4142# 'cargo test' takes care of building for us, so disable Appveyor's build stage. This prevents43# the "directory does not contain a project or solution file" error.44# source: https://github.com/starkat99/appveyor-rust/blob/master/appveyor.yml#L11345build: false4647# Equivalent to Travis' `script` phase48test_script:49 - cargo build --verbose50 - cargo run51 - cargo test5253before_deploy:54 # Generate artifacts for release55 - cargo build --release56 - mkdir staging57 # TODO update this part to copy the artifacts that make sense for your project58 - copy target\release\fd.exe staging59 - cd staging60 # release zipfile will look like 'rust-everywhere-v1.2.3-x86_64-pc-windows-msvc'61 - 7z a ../%PROJECT_NAME%-%APPVEYOR_REPO_TAG_NAME%-%TARGET%.zip *62 - appveyor PushArtifact ../%PROJECT_NAME%-%APPVEYOR_REPO_TAG_NAME%-%TARGET%.zip6364deploy:65 description: 'Windows release'66 # All the zipped artifacts will be deployed67 artifact: /.*\.zip/68 # Here's how:69 # - Go to 'https://github.com/settings/tokens/new' and generate a Token with only the70 # `public_repo` scope enabled71 # - Then go to 'https://ci.appveyor.com/tools/encrypt' and enter the newly generated token.72 # - Enter the "encrypted value" below73 auth_token:74 secure: mWJ8ieZdGEgHf232fdMyzb9T1rKbkJivYbp/REMo8ax3X5vkQJDHhFjWeuWA3wIC75 provider: GitHub76 # deploy when a new tag is pushed and only on the stable channel77 on:78 # channel to use to produce the release artifacts79 CHANNEL: stable80 appveyor_repo_tag: true8182branches:83 only:84 - master85 # IMPORTANT Regex to match tags. Required, or appveyor may not trigger deploys when a new tag86 # is pushed. This regex matches semantic versions like v1.2.3-rc4+2016.02.2287 - /^v\d+\.\d+\.\d+.*$/