@@ -3,6 +3,7 @@ name: CI - Rust
33on :
44 push :
55 paths :
6+ - .cargo/**
67 - Cargo.toml
78 - Cargo.lock
89 - crates/cli/**
@@ -16,14 +17,19 @@ jobs:
1617 - name : Checkout repository
1718 uses : actions/checkout@v6
1819
20+ - name : Install Rust nightly with Cranelift
21+ uses : dtolnay/rust-toolchain@nightly
22+ with :
23+ components : rustc-codegen-cranelift-preview
24+
1925 - name : Cache Cargo dependencies
2026 uses : Swatinem/rust-cache@v2
2127
2228 - name : Install cargo-llvm-cov
2329 uses : taiki-e/install-action@cargo-llvm-cov
2430
2531 - name : Generate code coverage
26- run : cargo llvm-cov --all-features --workspace --lcov --output-path lcov.info
32+ run : CARGO_PROFILE_DEV_CODEGEN_BACKEND=llvm cargo llvm-cov --all-features --workspace --lcov --output-path lcov.info
2733
2834 - name : Upload coverage to Codecov
2935 if : github.actor != 'dependabot[bot]'
3945 - name : Checkout repository
4046 uses : actions/checkout@v6
4147
48+ - name : Install Rust nightly with Cranelift
49+ uses : dtolnay/rust-toolchain@nightly
50+ with :
51+ components : rustfmt, clippy, rustc-codegen-cranelift-preview
52+
4253 - name : Cache Cargo dependencies
4354 uses : Swatinem/rust-cache@v2
4455
0 commit comments