Skip to content

Commit aef10b1

Browse files
codecov.yml install deps
1 parent 3d973ff commit aef10b1

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

.github/workflows/codecov.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,28 +15,26 @@ jobs:
1515
LLVM_PROFILE_FILE: "coverage-%p-%m.profraw"
1616

1717
steps:
18-
# Checkout the repo
1918
- name: Checkout code
2019
uses: actions/checkout@v4
2120

22-
# Install Rust toolchain (stable)
2321
- name: Set up Rust
2422
uses: dtolnay/rust-toolchain@stable
2523
with:
2624
toolchain: stable
2725
components: llvm-tools-preview
2826

29-
# Build and test with coverage instrumentation
27+
- name: Install system deps
28+
run: sudo apt-get update && sudo apt-get install -y build-essential clang lld
29+
3030
- name: Run tests
3131
run: |
3232
cargo build --all-features
3333
cargo test --all-features
3434
35-
# Install grcov
3635
- name: Install grcov
3736
run: cargo install grcov
3837

39-
# Generate lcov report
4038
- name: Generate coverage report
4139
run: |
4240
mkdir -p coverage
@@ -50,7 +48,6 @@ jobs:
5048
--ignore "/*" \
5149
-o coverage/tests.lcov
5250
53-
# Upload to Codecov
5451
- name: Upload coverage to Codecov
5552
uses: codecov/codecov-action@v4
5653
with:

0 commit comments

Comments
 (0)