mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-08-20 06:51:15 +00:00
After some of the build changes there was no longer a release artifact left to be used for the release builds. Signed-off-by: Rob Bradford <robert.bradford@intel.com>
34 lines
1.1 KiB
YAML
34 lines
1.1 KiB
YAML
language: rust
|
|
|
|
rust:
|
|
- stable
|
|
|
|
before_script:
|
|
- rustup component add clippy
|
|
- rustup component add rustfmt
|
|
- cargo install --force cargo-audit
|
|
|
|
script:
|
|
- cargo rustc --bin cloud-hypervisor -- -D warnings
|
|
- cargo rustc --bin cloud-hypervisor --no-default-features --features "pci" -- -D warnings
|
|
- cargo rustc --bin cloud-hypervisor --no-default-features --features "pci,acpi" -- -D warnings
|
|
- cargo rustc --bin cloud-hypervisor --no-default-features --features "mmio" -- -D warnings
|
|
- cargo rustc --bin vhost_user_net -- -D warnings
|
|
- cargo rustc --bin vhost_user_net --no-default-features --features "pci" -- -D warnings
|
|
- cargo rustc --bin vhost_user_net --no-default-features --features "pci,acpi" -- -D warnings
|
|
- cargo rustc --bin vhost_user_net --no-default-features --features "mmio" -- -D warnings
|
|
- cargo test
|
|
- cargo clippy --all-targets --all-features -- -D warnings
|
|
- find . -name "*.rs" | xargs rustfmt --check
|
|
- cargo audit
|
|
- cargo build --release
|
|
|
|
deploy:
|
|
provider: releases
|
|
api_key: $GITHUB_OAUTH_TOKEN
|
|
file: target/release/cloud-hypervisor
|
|
skip_cleanup: true
|
|
draft: true
|
|
on:
|
|
tags: true
|