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'
2721 if : matrix.os == 'windows-latest'
2822
2923 - name : Check
24+ env :
25+ CARGO_INCREMENTAL : 0
3026 run : |
3127 cargo check --all --all-features
3228
3834 os : [ubuntu-latest, macOS-latest, windows-latest]
3935 steps :
4036 - 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-
4737 # For bindgen: https://github.com/rust-lang/rust-bindgen/issues/1797
4838 - uses : KyleMayes/install-llvm-action@v2
4939 if : matrix.os == 'windows-latest'
5444 if : matrix.os == 'windows-latest'
5545
5646 - name : Test
47+ env :
48+ CARGO_INCREMENTAL : 0
5749 run : |
5850 cargo test
5951
@@ -62,14 +54,10 @@ jobs:
6254 runs-on : ubuntu-latest
6355 steps :
6456 - 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-
7157 - run : rustup component add rustfmt
7258 - name : cargo fmt
59+ env :
60+ CARGO_INCREMENTAL : 0
7361 run : |
7462 cargo fmt --all -- --check
7563
@@ -78,13 +66,10 @@ jobs:
7866 runs-on : ubuntu-latest
7967 steps :
8068 - 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
8669 - run : rustup component add clippy
8770 - name : cargo clippy
71+ env :
72+ CARGO_INCREMENTAL : 0
8873 run : |
8974 cargo clippy --all-targets -- -D warnings
9075
@@ -102,16 +87,14 @@ jobs:
10287 steps :
10388 - name : Checkout source code
10489 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-
11190 - name : Install cargo-llvm-cov
11291 uses : taiki-e/install-action@cargo-llvm-cov
11392 - name : Generate code coverage
114- run : cargo llvm-cov --all-features --lcov --branch --output-path lcov.info
93+ env :
94+ CARGO_INCREMENTAL : 0
95+ RUSTC_BOOTSTRAP : 1
96+ run : |
97+ cargo llvm-cov --all-features --lcov --branch --output-path lcov.info
11598
11699 - name : Upload coverage as artifact
117100 uses : actions/upload-artifact@v7
0 commit comments