Skip to content

Commit c684c77

Browse files
committed
ci: fix kvm
1 parent a77b843 commit c684c77

File tree

1 file changed

+5
-13
lines changed

1 file changed

+5
-13
lines changed

.github/workflows/ci.yml

+5-13
Original file line numberDiff line numberDiff line change
@@ -92,33 +92,25 @@ jobs:
9292
uses: actions-rs/cargo@v1
9393
with:
9494
command: clean
95-
- name: install nightly toolchain
96-
uses: actions-rs/toolchain@v1
97-
with:
98-
profile: minimal
99-
toolchain: nightly
100-
override: true
95+
10196
- name: test KVM driver
10297
uses: actions-rs/cargo@v1
10398
with:
10499
command: test
105-
# The target arg is a workaround in order to prevent build.rs files from being compiled with RUSTFLAGS
106-
# -Cpanic=abort can lead to issues with bindgen during compile time
107100
# --lib only unit tests in the library, avoid integration tests
108-
args: --lib --features kvm --no-fail-fast --target x86_64-unknown-linux-gnu
109-
env:
110-
CARGO_INCREMENTAL: '0'
111-
RUSTFLAGS: '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests'
112-
RUSTDOCFLAGS: '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests'
101+
args: --lib --features kvm
102+
113103
- name: install grcov
114104
uses: actions-rs/[email protected]
115105
with:
116106
crate: grcov
117107
version: latest
118108
use-tool-cache: true
109+
119110
- name: generate coverage report
120111
id: coverage
121112
uses: actions-rs/[email protected]
113+
122114
- name: upload coverage report to codecov.io
123115
uses: codecov/codecov-action@v1
124116
with:

0 commit comments

Comments
 (0)