Skip to content

Commit

Permalink
github: Fix coverage collection with lcov >= 2.1 on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
saprykin committed Apr 22, 2024
1 parent 2fd4254 commit 2c596dc
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,13 @@ jobs:
run: |
pwd
codecovcli create-commit -t ${{ secrets.CODECOV_TOKEN }}
lcov -c --directory ../plibsys-build --no-external --base-directory . --output-file ../plibsys-build/coverage.info
if [ "$RUNNER_OS" == "Linux" ]; then
lcov -c --directory ../plibsys-build --no-external --base-directory . --output-file ../plibsys-build/coverage.info
elif [ "$RUNNER_OS" == "macOS" ]; then
lcov -c --directory ../plibsys-build --branch-coverage --base-directory . --output-file ../plibsys-build/coverage.info
else
echo "Unknown operating system of runner"
exit 1
fi
codecovcli -v create-report -t ${{ secrets.CODECOV_TOKEN }}
codecovcli -v do-upload --dir ../plibsys-build --name github-${{ env.CODECOV_OS }} -t ${{ secrets.CODECOV_TOKEN }}

0 comments on commit 2c596dc

Please sign in to comment.