mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-01-28 07:25:21 +00:00
1387ac5571
cargo audit audits Cargo.lock for crates with security vulnerabvilities reported by the RustSec Advisory Database. Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
33 lines
1.1 KiB
YAML
33 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
|
|
|
|
deploy:
|
|
provider: releases
|
|
api_key: $GITHUB_OAUTH_TOKEN
|
|
file: target/release/cloud-hypervisor
|
|
skip_cleanup: true
|
|
draft: true
|
|
on:
|
|
tags: true
|