2020-04-23 12:59:18 +02:00
|
|
|
name: Cloud Hypervisor Build
|
2020-03-12 10:03:27 +01:00
|
|
|
on: [pull_request, create]
|
2020-03-05 12:16:51 +01:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
2020-03-12 10:03:27 +01:00
|
|
|
if: github.event_name == 'pull_request'
|
2020-03-05 12:16:51 +01:00
|
|
|
name: Build
|
|
|
|
runs-on: ubuntu-latest
|
2020-03-13 10:45:50 +01:00
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
rust:
|
|
|
|
- stable
|
|
|
|
- beta
|
2020-06-12 18:56:53 +01:00
|
|
|
- nightly
|
2020-04-20 08:07:17 +02:00
|
|
|
target:
|
|
|
|
- x86_64-unknown-linux-gnu
|
|
|
|
- x86_64-unknown-linux-musl
|
2020-03-05 12:16:51 +01:00
|
|
|
steps:
|
|
|
|
- name: Code checkout
|
|
|
|
uses: actions/checkout@v2
|
2020-03-13 10:45:50 +01:00
|
|
|
- name: Install Rust toolchain (${{ matrix.rust }})
|
2020-03-05 12:16:51 +01:00
|
|
|
uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
2020-03-13 10:45:50 +01:00
|
|
|
toolchain: ${{ matrix.rust }}
|
2020-04-20 08:07:17 +02:00
|
|
|
target: ${{ matrix.target }}
|
2020-03-05 12:16:51 +01:00
|
|
|
override: true
|
|
|
|
|
2020-08-13 12:00:48 +01:00
|
|
|
- name: Debug Build (default features)
|
|
|
|
run: cargo build --all --target=${{ matrix.target }}
|
|
|
|
|
|
|
|
- name: Build (pci,acpi,kvm)
|
|
|
|
run: cargo rustc --bin cloud-hypervisor --no-default-features --features "pci,acpi,kvm" -- -D warnings
|
|
|
|
|
|
|
|
- name: Build (pci,kvm)
|
|
|
|
run: cargo rustc --bin cloud-hypervisor --no-default-features --features "pci,kvm" -- -D warnings
|
|
|
|
|
|
|
|
- name: Build (mmio,kvm)
|
|
|
|
run: cargo rustc --bin cloud-hypervisor --no-default-features --features "mmio,kvm" -- -D warnings
|
|
|
|
|
|
|
|
- name: Release Build (default features)
|
2020-07-03 15:03:28 +01:00
|
|
|
run: cargo build --all --release --target=${{ matrix.target }}
|