ci(rust): improve workflow

This commit is contained in:
EdJoPaTo
2024-05-15 12:49:29 +02:00
parent d7415f40c7
commit 68d19b0a58
2 changed files with 97 additions and 47 deletions
+4 -7
View File
@@ -9,6 +9,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Setup Rust
id: rust
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
@@ -20,15 +21,11 @@ jobs:
tool: cargo-llvm-cov
- uses: actions/checkout@v4
- run: cargo fetch
- uses: actions/cache@v4
with:
key: coverage-${{ hashFiles('**/Cargo.lock') }}
path: |
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: coverage-${{ steps.rust.outputs.cachekey }}-${{ hashFiles('**/Cargo.*') }}
path: target/
- name: Run cargo-llvm-cov
run: cargo llvm-cov --all-features --html