Skip to content
Myr

appveyor.yml

This file

Path

appveyor.yml

71 lines · 2.3 KiB · YAML

Last changed by

Clean up CI filessharkdpbefore adoption80b042a

History of this file

Take it

The walk stopped after 200 commits: lines older than 3c87952 point at it.

Bump minimum required Rust versionsharkdpbefore adoption3c87952

lines 1–71why, one step back
1# Source: https://github.com/starkat99/appveyor-rust/
23environment:4 global:5 PROJECT_NAME: fd6 matrix:7 # Stable channel8 - TARGET: i686-pc-windows-gnu9 CHANNEL: stable10 - TARGET: i686-pc-windows-msvc11 CHANNEL: stable12 - TARGET: x86_64-pc-windows-gnu13 CHANNEL: stable14 - TARGET: x86_64-pc-windows-msvc15 CHANNEL: stable1617# Install Rust and Cargo18# (Based on from https://github.com/rust-lang/libc/blob/master/appveyor.yml)19install:20 - curl -sSf -o rustup-init.exe https://win.rustup.rs21 - rustup-init.exe --default-host %TARGET% --default-toolchain %CHANNEL% -y22 - set PATH=%PATH%;C:\Users\appveyor\.cargo\bin23 - rustc -Vv24 - cargo -V2526# 'cargo test' takes care of building for us, so disable Appveyor's build stage. This prevents27# the "directory does not contain a project or solution file" error.28# source: https://github.com/starkat99/appveyor-rust/blob/master/appveyor.yml#L11329build: false3031# Equivalent to Travis' `script` phase32test_script:33 - cargo build --verbose34 - cargo run35 - cargo test3637before_deploy:38 # Generate artifacts for release39 - cargo build --release40 - mkdir staging41 - copy target\release\fd.exe staging42 - ps: copy target\release\build\fd-find*\out\_fd.ps1 staging43 - cd staging44 # release zipfile will look like 'rust-everywhere-v1.2.3-x86_64-pc-windows-msvc'45 - 7z a ../%PROJECT_NAME%-%APPVEYOR_REPO_TAG_NAME%-%TARGET%.zip *46 - appveyor PushArtifact ../%PROJECT_NAME%-%APPVEYOR_REPO_TAG_NAME%-%TARGET%.zip4748deploy:49 description: 'Windows release'50 # All the zipped artifacts will be deployed51 artifact: /.*\.zip/52 # Here's how:53 # - Go to 'https://github.com/settings/tokens/new' and generate a Token with only the54 # `public_repo` scope enabled55 # - Then go to 'https://ci.appveyor.com/tools/encrypt' and enter the newly generated token.56 # - Enter the "encrypted value" below57 auth_token:58 secure: mWJ8ieZdGEgHf232fdMyzb9T1rKbkJivYbp/REMo8ax3X5vkQJDHhFjWeuWA3wIC59 provider: GitHub60 # deploy when a new tag is pushed and only on the stable channel61 on:62 # channel to use to produce the release artifacts63 CHANNEL: stable64 appveyor_repo_tag: true6566branches:67 only:68 - master69 # IMPORTANT Regex to match tags. Required, or appveyor may not trigger deploys when a new tag70 # is pushed. This regex matches semantic versions like v1.2.3-rc4+2016.02.2271 - /^v\d+\.\d+\.\d+.*$/