Skip to content

Commit 4f955df

Browse files
committed
ci: fix kvm
1 parent b8549c6 commit 4f955df

File tree

1 file changed

+7
-12
lines changed

1 file changed

+7
-12
lines changed

.github/workflows/ci.yml

+7-12
Original file line numberDiff line numberDiff line change
@@ -92,33 +92,28 @@ 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
101+
args: --lib --features kvm
109102
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'
103+
RUSTFLAGS: "-Cinstrument-coverage"
104+
LLVM_PROFILE_FILE: "coverage-%p-%m.profraw"
105+
113106
- name: install grcov
114107
uses: actions-rs/[email protected]
115108
with:
116109
crate: grcov
117110
version: latest
118111
use-tool-cache: true
112+
119113
- name: generate coverage report
120114
id: coverage
121115
uses: actions-rs/[email protected]
116+
122117
- name: upload coverage report to codecov.io
123118
uses: codecov/codecov-action@v1
124119
with:

0 commit comments

Comments
 (0)