Skip to content

Commit

Permalink
build.yml: Upgrade lcov from 2.1 to 2.3-beta
Browse files Browse the repository at this point in the history
  • Loading branch information
NeilJustice committed Dec 31, 2024
1 parent a174893 commit a0a259d
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
strategy:
matrix:
cxx: [g++-11]
cmake_build_type: [Debug, Release]
cmake_build_type: [Debug, Release]

runs-on: ubuntu-latest

Expand All @@ -26,7 +26,7 @@ jobs:

- name: Install lld and ninja-build
run: sudo apt-get install lld ninja-build

- name: Install lcov Perl dependencies if g++-11 Release
run: sudo apt-get install libcapture-tiny-perl libdatetime-perl
if: ${{ matrix.cxx == 'g++-11' && matrix.cmake_build_type == 'Release' }}
Expand Down Expand Up @@ -85,14 +85,14 @@ jobs:
- name: Print .comment section of binary libFileArbTests to confirm it was linked with LLD
run: readelf --string-dump .comment "${{matrix.cmake_build_type}}/libFileArbTests/libFileArbTests"

- name: Install and run lcov 2.1 then upload to Codecov.io if g++-11 Release
- name: Install and run lcov 2.3-beta then upload to Codecov.io if g++-11 Release
run: |
mkdir -p lcov_21
wget https://github.com/linux-test-project/lcov/releases/download/v2.1/lcov-2.1.tar.gz --output-document="lcov_21/lcov-2.1.tar.gz"
tar xf "lcov_21/lcov-2.1.tar.gz" --strip-components=1 --directory lcov_21
lcov_21/bin/lcov --version
lcov_21/bin/lcov --directory . --capture --output-file coverage.info
lcov_21/bin/lcov --list coverage.info
mkdir -p lcov_2_3
wget https://github.com/linux-test-project/lcov/releases/download/v2.3-beta/lcov-2.3.tar.gz --output-document="lcov_2_3/lcov-2.3.tar.gz"
tar xf "lcov_2_3/lcov-2.3.tar.gz" --strip-components=1 --directory lcov_2_3
lcov_2_3/bin/lcov --version
lcov_2_3/bin/lcov --directory . --capture --ignore-errors inconsistent --output-file coverage.info
lcov_2_3/bin/lcov --list coverage.info
bash <(curl -s https://codecov.io/bash) -f coverage.info -t ${{ secrets.CODECOV_TOKEN }} || echo "Codecov did not collect coverage reports"
if: ${{ matrix.cxx == 'g++-11' && matrix.cmake_build_type == 'Release' }}

Expand All @@ -105,3 +105,4 @@ jobs:
name: filearb
path: Release/FileArb/filearb
if: ${{ matrix.cxx == 'clang++' && matrix.cmake_build_type == 'Release' }}

0 comments on commit a0a259d

Please sign in to comment.