forked from actions-rs/grcov
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RUSTFLAGS is not passed to doc tests (actions-rs#74)
- RUSTDOCFLAGS is used to pass arguments to doc tests Tracking issue: rust-lang/rust#43031
- Loading branch information
1 parent
770fa90
commit d9881ad
Showing
1 changed file
with
3 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,6 +30,7 @@ jobs: | |
env: | ||
CARGO_INCREMENTAL: '0' | ||
RUSTFLAGS: '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests' | ||
RUSTDOCFLAGS: '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests' | ||
- uses: actions-rs/[email protected] | ||
``` | ||
|
@@ -59,7 +60,7 @@ jobs: | |
3. Create a configuration file for `grcov`, see [config section](#config) for details. | ||
|
||
4. Execute the `cargo test` command. | ||
It is required to add `CARGO_INCREMENTAL` and `RUSTFLAGS` environment variables | ||
It is required to add `CARGO_INCREMENTAL`, `RUSTFLAGS` and `RUSTDOCFLAGS` environment variables | ||
for this command, see [grcov](https://github.com/mozilla/grcov) page for details. | ||
|
||
```yaml | ||
|
@@ -70,6 +71,7 @@ jobs: | |
env: | ||
CARGO_INCREMENTAL: '0' | ||
RUSTFLAGS: '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests' | ||
RUSTDOCFLAGS: '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests' | ||
``` | ||
|
||
Note that `-Clink-dead-code` flag might be broken for macOS environments, | ||
|