Skip to content

Commit 8c74eea

Browse files
committed
refactor GitHub workflow and script: adjust LLVM coverage report paths for consistency and simplify file generation logic
1 parent 1c469c3 commit 8c74eea

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.github/workflows/ubuntu.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -389,12 +389,12 @@ jobs:
389389
--llvm-profdata llvm-profdata-20 \
390390
--llvm-cov llvm-cov-20
391391
# Check if files were generated
392-
ls -la coverage.lcov
392+
ls -la build/coverage.lcov
393393
ls -la build/cov-report/
394394
- name: Upload coverage reports to Codecov
395395
uses: codecov/[email protected]
396396
with:
397-
files: ./coverage.lcov
397+
files: ./build/coverage.lcov
398398
verbose: true
399399
name: llvm-codecov
400400
- name: Upload coverage report artifact

scripts/generate_llvm_coverage.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,8 @@ def generate_coverage_reports(
8080
subprocess.run(cmd, check=True)
8181

8282
# Generate LCOV report
83-
lcov_file = Path(output_dir).parent / "coverage.lcov"
83+
# Place coverage.lcov in the current working directory (build dir)
84+
lcov_file = Path("coverage.lcov")
8485
print(f"\nGenerating LCOV report: {lcov_file}")
8586
cmd = [
8687
llvm_cov, "export",

0 commit comments

Comments
 (0)