mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-08-26 09:51:15 +00:00
We use cargo vendor to generate a .cargo/config file and the vendor directory. Vendoring allows us to lock our dependencies and to modify them easily from the top level Cargo.toml. We vendor all dependencies, including the crates.io ones, which allows for network isolated builds. Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
76 lines
1.6 KiB
YAML
76 lines
1.6 KiB
YAML
steps:
|
|
- label: "build-gnu-x86"
|
|
commands:
|
|
- cargo build --release
|
|
retry:
|
|
automatic: false
|
|
agents:
|
|
platform: x86_64.metal
|
|
plugins:
|
|
- docker#v3.0.1:
|
|
image: "fandree/rust-vmm-dev"
|
|
always-pull: true
|
|
|
|
- label: "build-gnu-arm"
|
|
commands:
|
|
- cargo build --release
|
|
retry:
|
|
automatic: false
|
|
agents:
|
|
platform: arm.metal
|
|
plugins:
|
|
- docker#v3.0.1:
|
|
image: "fandree/rust-vmm-dev"
|
|
always-pull: true
|
|
|
|
- label: "style"
|
|
command: cargo fmt --all -- --check
|
|
retry:
|
|
automatic: false
|
|
agents:
|
|
platform: x86_64.metal
|
|
plugins:
|
|
- docker#v3.0.1:
|
|
image: "fandree/rust-vmm-dev"
|
|
always-pull: true
|
|
|
|
- label: "unittests-gnu-x86"
|
|
commands:
|
|
- cargo test
|
|
retry:
|
|
automatic: false
|
|
agents:
|
|
platform: x86_64.metal
|
|
plugins:
|
|
- docker#v3.0.1:
|
|
privileged: true
|
|
image: "fandree/rust-vmm-dev"
|
|
always-pull: true
|
|
tmpfs: [ "/tmp:exec" ]
|
|
|
|
- label: "unittests-gnu-arm"
|
|
commands:
|
|
- cargo test
|
|
retry:
|
|
automatic: false
|
|
agents:
|
|
platform: arm.metal
|
|
plugins:
|
|
- docker#v3.0.1:
|
|
privileged: true
|
|
image: "fandree/rust-vmm-dev"
|
|
always-pull: true
|
|
tmpfs: [ "/tmp:exec" ]
|
|
|
|
- label: "clippy-x86"
|
|
commands:
|
|
- cargo clippy --all -- -D warnings
|
|
retry:
|
|
automatic: false
|
|
agents:
|
|
platform: x86_64.metal
|
|
plugins:
|
|
- docker#v3.0.1:
|
|
image: "fandree/rust-vmm-dev"
|
|
always-pull: true
|