mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-08-23 00:11:16 +00:00
24 lines
450 B
YAML
24 lines
450 B
YAML
language: rust
|
|
|
|
rust:
|
|
- stable
|
|
|
|
before_script:
|
|
- rustup component add clippy
|
|
- rustup component add rustfmt
|
|
|
|
script:
|
|
- cargo build --release
|
|
- cargo test
|
|
- cargo clippy --all-targets --all-features -- -D warnings
|
|
- find . -name "*.rs" | grep -v "vendor/" | xargs rustfmt --check
|
|
|
|
deploy:
|
|
provider: releases
|
|
api_key: $GITHUB_OAUTH_TOKEN
|
|
file: target/release/cloud-hypervisor
|
|
skip_cleanup: true
|
|
draft: true
|
|
on:
|
|
tags: true
|