Skip to content

Commit fdb4a9c

Browse files
committed
fix: ignore minor lcov inconsistencies and add dependency install retries
1 parent 5743acc commit fdb4a9c

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
- name: Install dependencies
3535
run: |
3636
sudo apt-get update
37-
sudo apt-get install -y cmake clang clang-tidy llvm ninja-build ccache lcov
37+
sudo apt-get install -y cmake clang clang-tidy llvm ninja-build ccache lcov || (sleep 10 && sudo apt-get update && sudo apt-get install -y cmake clang clang-tidy llvm ninja-build ccache lcov)
3838
3939
- name: Cache ccache
4040
uses: actions/cache@v4
@@ -77,9 +77,9 @@ jobs:
7777
if: matrix.sanitizer == 'address' && matrix.compiler == 'clang++'
7878
run: |
7979
cd build
80-
lcov --directory . --capture --output-file coverage.info --gcov-tool "$GITHUB_WORKSPACE/.github/scripts/llvm-gcov.sh"
81-
lcov --remove coverage.info '/usr/*' '*/tests/*' '*/CMakeFiles/*' --output-file filtered_coverage.info
82-
genhtml filtered_coverage.info --output-directory out_coverage
80+
lcov --directory . --capture --output-file coverage.info --gcov-tool "$GITHUB_WORKSPACE/.github/scripts/llvm-gcov.sh" --ignore-errors inconsistent
81+
lcov --remove coverage.info '/usr/*' '*/tests/*' '*/CMakeFiles/*' --output-file filtered_coverage.info --ignore-errors inconsistent
82+
genhtml filtered_coverage.info --output-directory out_coverage --ignore-errors inconsistent
8383
8484
- name: Upload Coverage
8585
if: matrix.sanitizer == 'address' && matrix.compiler == 'clang++'

0 commit comments

Comments
 (0)