18
18
runs-on : ubuntu-latest
19
19
env :
20
20
CARGO_INCREMENTAL : " 0"
21
- RUSTFLAGS : " -Z profile -C codegen-units=1 -C inline-threshold =0 -C link-dead-code -C overflow-checks=off -C panic=abort -Z panic_abort_tests "
22
- RUSTDOCFLAGS : " -Z profile -C codegen-units=1 -C inline-threshold =0 -C link-dead-code -C overflow-checks=off -C panic=abort -Z panic_abort_tests "
21
+ RUSTFLAGS : " -Z profile -C codegen-units=1 -C opt-level =0 -C link-dead-code -C overflow-checks=off -Z panic_abort_tests - C panic=abort"
22
+ RUSTDOCFLAGS : " -Z profile -C codegen-units=1 -C opt-level =0 -C link-dead-code -C overflow-checks=off -Z panic_abort_tests - C panic=abort"
23
23
24
24
steps :
25
25
- id : checkout_push
36
36
37
37
- id : setup
38
38
name : Setup Toolchain
39
- uses : dtolnay/rust-toolchain@stable
39
+ uses : dtolnay/rust-toolchain@nightly
40
40
with :
41
41
toolchain : nightly
42
42
components : llvm-tools-preview
@@ -45,16 +45,11 @@ jobs:
45
45
name : Enable Workflow Cache
46
46
uses : Swatinem/rust-cache@v2
47
47
48
- # Temporary Cleaning to avoid Rust Compiler Bug
49
- - id : clean
50
- name : Make Build Clean
51
- run : cargo clean
52
-
53
48
- id : tools
54
49
name : Install Tools
55
50
uses : taiki-e/install-action@v2
56
51
with :
57
- tool : cargo-llvm-cov, cargo-nextest, grcov
52
+ tool : grcov
58
53
59
54
- id : imdl
60
55
name : Install Intermodal
@@ -64,16 +59,24 @@ jobs:
64
59
name : Run Build Checks
65
60
run : cargo check --tests --benches --examples --workspace --all-targets --all-features
66
61
62
+ - id : clean
63
+ name : Clean Build Directory
64
+ run : cargo clean
65
+
66
+ - id : build
67
+ name : Pre-build Main Project
68
+ run : cargo build --workspace --all-targets --all-features --jobs 2
69
+
70
+ - id : build_tests
71
+ name : Pre-build Tests
72
+ run : cargo build --workspace --all-targets --all-features --tests --jobs 2
73
+
67
74
- id : test
68
75
name : Run Unit Tests
69
- run : cargo test --tests --benches --examples --workspace --all-targets --all-features
70
-
71
- - id : coverage-llvm
72
- name : Generate Coverage Report with LLVM
73
- run : cargo llvm-cov nextest --tests --benches --examples --workspace --all-targets --all-features
76
+ run : cargo test --tests --workspace --all-targets --all-features
74
77
75
- - id : coverage-grcov
76
- name : Generate Coverage Report with grcov
78
+ - id : coverage
79
+ name : Generate Coverage Report
77
80
uses : alekitto/grcov@v0.2
78
81
79
82
- id : upload
0 commit comments