This repository was archived by the owner on Oct 13, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 30
30
env :
31
31
CARGO_INCREMENTAL : ' 0'
32
32
RUSTFLAGS : ' -Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests'
33
+ RUSTDOCFLAGS : ' -Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests'
33
34
-
uses :
actions-rs/[email protected]
34
35
` ` `
35
36
59
60
3. Create a configuration file for `grcov`, see [config section](#config) for details.
60
61
61
62
4. Execute the `cargo test` command.
62
- It is required to add `CARGO_INCREMENTAL` and `RUSTFLAGS ` environment variables
63
+ It is required to add `CARGO_INCREMENTAL`, `RUSTFLAGS` and `RUSTDOCFLAGS ` environment variables
63
64
for this command, see [grcov](https://github.com/mozilla/grcov) page for details.
64
65
65
66
` ` ` yaml
70
71
env:
71
72
CARGO_INCREMENTAL: '0'
72
73
RUSTFLAGS: '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests'
74
+ RUSTDOCFLAGS: '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests'
73
75
` ` `
74
76
75
77
Note that `-Clink-dead-code` flag might be broken for macOS environments,
You can’t perform that action at this time.
0 commit comments