mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-12-22 13:45:20 +00:00
ci: use cargo check
to validate building commits
The purpose of that step is to make sure each commit builds. The `check` command is much faster for that purpose. On my 32-core machine `cargo check --all` takes around 25 seconds while `cargo build --all` takes around 35 seconds, so that's quite a bit of time saving there. Signed-off-by: Wei Liu <liuwe@microsoft.com>
This commit is contained in:
parent
67025948dc
commit
ac32b1e35f
4
.github/workflows/build.yaml
vendored
4
.github/workflows/build.yaml
vendored
@ -28,9 +28,9 @@ jobs:
|
||||
target: ${{ matrix.target }}
|
||||
override: true
|
||||
|
||||
- name: Debug Build (default features)
|
||||
- name: Debug Check (default features)
|
||||
run: |
|
||||
git rev-list origin/master..$GITHUB_SHA | xargs -t -I % sh -c 'git checkout %; cargo build --all --target=${{ matrix.target }}'
|
||||
git rev-list origin/master..$GITHUB_SHA | xargs -t -I % sh -c 'git checkout %; cargo check --all --target=${{ matrix.target }}'
|
||||
git checkout $GITHUB_SHA
|
||||
|
||||
- name: Build (pci,acpi,kvm)
|
||||
|
Loading…
Reference in New Issue
Block a user