Commit 4f955df 1 parent b8549c6 commit 4f955df Copy full SHA for 4f955df
File tree 1 file changed +7
-12
lines changed
1 file changed +7
-12
lines changed Original file line number Diff line number Diff line change @@ -92,33 +92,28 @@ jobs:
92
92
uses : actions-rs/cargo@v1
93
93
with :
94
94
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
+
101
96
- name : test KVM driver
102
97
uses : actions-rs/cargo@v1
103
98
with :
104
99
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
107
100
# --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
109
102
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
+
113
106
- name : install grcov
114
107
uses :
actions-rs/[email protected]
115
108
with :
116
109
crate : grcov
117
110
version : latest
118
111
use-tool-cache : true
112
+
119
113
- name : generate coverage report
120
114
id : coverage
121
115
uses :
actions-rs/[email protected]
116
+
122
117
- name : upload coverage report to codecov.io
123
118
uses : codecov/codecov-action@v1
124
119
with :
You can’t perform that action at this time.
0 commit comments