mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-02-08 12:41:35 +00:00
ci: Validate each commit can be built
It's important to ensure Cloud-Hypervisor's Git tree is bisectable, and that's why this commit extends the existing build.yaml Github action. This will validate that each commit from an incoming pull request can be built. Fixes #1808 Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
This commit is contained in:
parent
b33969896b
commit
cc7a5aca6c
7
.github/workflows/build.yaml
vendored
7
.github/workflows/build.yaml
vendored
@ -18,6 +18,9 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Code checkout
|
- name: Code checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Install Rust toolchain (${{ matrix.rust }})
|
- name: Install Rust toolchain (${{ matrix.rust }})
|
||||||
uses: actions-rs/toolchain@v1
|
uses: actions-rs/toolchain@v1
|
||||||
with:
|
with:
|
||||||
@ -26,7 +29,9 @@ jobs:
|
|||||||
override: true
|
override: true
|
||||||
|
|
||||||
- name: Debug Build (default features)
|
- name: Debug Build (default features)
|
||||||
run: cargo build --all --target=${{ matrix.target }}
|
run: |
|
||||||
|
git rev-list origin/master..$GITHUB_SHA | xargs -t -I % sh -c 'git checkout %; cargo build --all --target=${{ matrix.target }}'
|
||||||
|
git checkout $GITHUB_SHA
|
||||||
|
|
||||||
- name: Build (pci,acpi,kvm)
|
- name: Build (pci,acpi,kvm)
|
||||||
run: cargo rustc --bin cloud-hypervisor --no-default-features --features "pci,acpi,kvm" -- -D warnings
|
run: cargo rustc --bin cloud-hypervisor --no-default-features --features "pci,acpi,kvm" -- -D warnings
|
||||||
|
Loading…
x
Reference in New Issue
Block a user