Enable windows builds
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by sharkdp · committed by David Peter · parent bd2ea31 · Browse files · 1 file·+41 added−27 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+41 added−27 removed
- other:+41 added−27 removed
Provenance
- Commit
4b8f47d- Tree
9516c59- Author
sharkdp <davidpeter@web.de>- Committer
David Peter <sharkdp@users.noreply.github.com>- Parent
bd2ea31
1 file changed+41 added−27 removed
modified:appveyor.yml+41 added-27 removed
121256789101112131415345678171892021221011121314152627281630311733343536181920212223242526272829303132333435363738394041424344454647484950# Source: https://github.com/starkat99/appveyor-rust/
environment: global: PROJECT_NAME: hyperfine matrix: # Stable channel - TARGET: i686-pc-windows-gnu CHANNEL: stable - TARGET: i686-pc-windows-msvc CHANNEL: stable - TARGET: x86_64-pc-windows-gnu CHANNEL: stable - TARGET: x86_64-pc-windows-msvc CHANNEL: stable TARGET: x86_64-pc-windows-msvc RUST_VERSION: stable CRATE_NAME: hyperfine CARGO_HOME: "c:\\cargo" RUSTUP_HOME: "c:\\rustup"
# Install Rust and Cargo# (Based on from https://github.com/rust-lang/libc/blob/master/appveyor.yml)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 - appveyor DownloadFile https://win.rustup.rs/ -FileName rustup-init.exe - rustup-init.exe -y --default-host %TARGET% - set PATH=%PATH%;C:\cargo\bin - rustc -Vv - cargo -V
# 'cargo test' takes care of building for us, so disable Appveyor's build stage. This prevents# the "directory does not contain a project or solution file" error.# source: https://github.com/starkat99/appveyor-rust/blob/master/appveyor.yml#L113build: false
# Equivalent to Travis' `script` phasetest_script: - cargo build --verbose - cargo run -- --help - cargo run -- "echo test" - cargo test - cargo test --target %TARGET% --verbose - cargo run --target %TARGET% -- --help - cargo run --target %TARGET% -- "echo hello"
before_deploy: # Generate artifacts for release - cargo build --release --verbose - ps: ci\before_deploy.ps1
deploy: description: 'Automatically deployed release' artifact: /.*\.zip/ # Here's how: # - Go to 'https://github.com/settings/tokens/new' and generate a Token with only the # `public_repo` scope enabled # - Then go to 'https://ci.appveyor.com/tools/encrypt' and enter the newly generated token. # - Enter the "encrypted value" below auth_token: secure: oO4/J+hcFXgXcEqEc8gzlQNqLG0IxU78s4EyH+uczGdsyWajb3yipxPR6nXUvmoj provider: GitHub on: RUST_VERSION: stable appveyor_repo_tag: true
cache: - C:\Users\appveyor\.cargo\registry - target
notifications: - provider: Email on_build_success: false on_build_failure: false on_build_status_changed: false