tell OpenCppCoverage that we run an optimized build

should fix the crash accordign to the doc linked there
https://github.com/OpenCppCoverage/OpenCppCoverage/wiki/FAQ#your-application-has-thrown-an-unhandled-exception-code-3221225477-exception_access_violation

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
This commit is contained in:
Matthieu Gallien 2022-12-13 11:43:27 +01:00 committed by Matthieu Gallien
parent 6c763faba5
commit b5fe8adb5d
1 changed files with 1 additions and 1 deletions

View File

@ -72,7 +72,7 @@ jobs:
$binFolder = "$buildFolder\bin"
& OpenCppCoverage.exe --quiet --sources ${{ github.workspace }} --modules $binFolder\*.dll* --export_type cobertura:${{ env.COBERTURA_COVERAGE_FILE }} --cover_children -- ctest --output-on-failure --timeout 300
& OpenCppCoverage.exe --optimized_build --quiet --sources ${{ github.workspace }} --modules $binFolder\*.dll* --export_type cobertura:${{ env.COBERTURA_COVERAGE_FILE }} --cover_children -- ctest --output-on-failure --timeout 300
}
runTestsAndCreateCoverage