1111 os : [ubuntu-latest, macOS-latest, windows-latest]
1212 steps :
1313 - uses : actions/checkout@v6
14- - name : Install `rust` toolchain
15- run : |
16- ## Install `rust` toolchain
17- rustup toolchain install stable --no-self-update -c rustfmt --profile minimal
18- rustup default stable
19-
2014 # For bindgen: https://github.com/rust-lang/rust-bindgen/issues/1797
2115 - uses : KyleMayes/install-llvm-action@v2
2216 if : matrix.os == 'windows-latest'
2822
2923 - name : Check
3024 run : |
31- cargo check --all --all-features
25+ CARGO_INCREMENTAL=0 cargo check --all --all-features
3226
3327 test :
3428 name : cargo test
3832 os : [ubuntu-latest, macOS-latest, windows-latest]
3933 steps :
4034 - uses : actions/checkout@v6
41- - name : Install `rust` toolchain
42- run : |
43- ## Install `rust` toolchain
44- rustup toolchain install stable --no-self-update -c rustfmt --profile minimal
45- rustup default stable
46-
4735 # For bindgen: https://github.com/rust-lang/rust-bindgen/issues/1797
4836 - uses : KyleMayes/install-llvm-action@v2
4937 if : matrix.os == 'windows-latest'
@@ -55,38 +43,27 @@ jobs:
5543
5644 - name : Test
5745 run : |
58- cargo test
46+ CARGO_INCREMENTAL=0 cargo test
5947
6048 fmt :
6149 name : cargo fmt --all -- --check
6250 runs-on : ubuntu-latest
6351 steps :
6452 - uses : actions/checkout@v6
65- - name : Install `rust` toolchain
66- run : |
67- ## Install `rust` toolchain
68- rustup toolchain install stable --no-self-update -c rustfmt --profile minimal
69- rustup default stable
70-
7153 - run : rustup component add rustfmt
7254 - name : cargo fmt
7355 run : |
74- cargo fmt --all -- --check
56+ CARGO_INCREMENTAL=0 cargo fmt --all -- --check
7557
7658 clippy :
7759 name : cargo clippy -- -D warnings
7860 runs-on : ubuntu-latest
7961 steps :
8062 - uses : actions/checkout@v6
81- - name : Install `rust` toolchain
82- run : |
83- ## Install `rust` toolchain
84- rustup toolchain install stable --no-self-update -c rustfmt --profile minimal
85- rustup default stable
8663 - run : rustup component add clippy
8764 - name : cargo clippy
8865 run : |
89- cargo clippy --all-targets -- -D warnings
66+ CARGO_INCREMENTAL=0 cargo clippy --all-targets -- -D warnings
9067
9168 grcov :
9269 name : Code coverage
@@ -102,16 +79,10 @@ jobs:
10279 steps :
10380 - name : Checkout source code
10481 uses : actions/checkout@v6
105-
106- - name : Install `rust` toolchain
107- run : |
108- rustup toolchain install nightly --no-self-update -c rustfmt --profile minimal
109- rustup default nightly
110-
11182 - name : Install cargo-llvm-cov
11283 uses : taiki-e/install-action@cargo-llvm-cov
11384 - name : Generate code coverage
114- run : cargo llvm-cov --all-features --lcov --branch --output-path lcov.info
85+ run : CARGO_INCREMENTAL=0 cargo llvm-cov --all-features --lcov --branch --output-path lcov.info
11586
11687 - name : Upload coverage as artifact
11788 uses : actions/upload-artifact@v6
0 commit comments