chore: update Rust installation in coverage workflow (#16)

Replaced manual Rust installation with dtolnay/rust-toolchain action for
better maintainability and clarity. Added necessary components like
llvm-tools-preview to support code coverage generation. These changes
simplify the workflow setup.
This commit is contained in:
Harald Hoyer 2025-03-31 13:23:23 +02:00 committed by GitHub
commit 46bf63fd32
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -21,9 +21,11 @@ jobs:
CARGO_TERM_COLOR: always
steps:
- uses: actions/checkout@v4
- name: Install Rust
run: |
rustup update nightly
- uses: dtolnay/rust-toolchain@master
with:
target: x86_64-unknown-linux-gnu
toolchain: nightly
components: llvm-tools-preview
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov
- name: Generate code coverage