try to fix codecov

This commit is contained in:
lyon 2023-06-18 11:25:44 +08:00
parent 0db9ff7c8c
commit 65d1920469
3 changed files with 5 additions and 5 deletions

View File

@ -48,12 +48,12 @@ jobs:
run: cd ${{github.workspace}}/port/linux && bash gtest.sh
- name: Lcov
run: cd ${{github.workspace}}/port/linux && bash lcov.sh
run: cd ${{github.workspace}} && bash lcov.sh
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
with:
file: ${{github.workspace}}/port/linux/testHtml.info
file: ${{github.workspace}}/testHtml.info
- name: VALGRIND
run: cd ${{github.workspace}}/port/linux && bash valgrind.sh

3
lcov.sh Normal file
View File

@ -0,0 +1,3 @@
lcov --capture --directory port/linux/build/package/pikascript/CMakeFiles/pikascript-core.dir/pikascript-lib --directory port/linux/build/package/pikascript/CMakeFiles/pikascript-core.dir/pikascript-core --output-file testHtml.info --test-name testHtml
genhtml -o result testHtml.info

View File

@ -1,3 +0,0 @@
lcov --capture --directory build/package/pikascript/CMakeFiles/pikascript-core.dir/pikascript-lib --directory build/package/pikascript/CMakeFiles/pikascript-core.dir/pikascript-core --output-file testHtml.info --test-name testHtml
genhtml -o result testHtml.info