diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2dded85..672baf2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -6,7 +6,7 @@ jobs: strategy: matrix: cxx: [g++-11] - cmake_build_type: [Debug, Release] + cmake_build_type: [Debug, Release] runs-on: ubuntu-latest @@ -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' }} @@ -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' }} @@ -105,3 +105,4 @@ jobs: name: filearb path: Release/FileArb/filearb if: ${{ matrix.cxx == 'clang++' && matrix.cmake_build_type == 'Release' }} +