Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test #636

Merged
merged 8 commits into from
Nov 7, 2024
Merged

test #636

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions .github/workflows/linux_llvm_cov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
branches:
- main
- master
- coro_http_server
- test_conv1

jobs:
build:
Expand All @@ -32,6 +32,7 @@ jobs:
- name: Run Coverage
run: |
mkdir build && cd build
mkdir .coverage_llvm_cov
CC=clang-17 CXX=clang++-17 cmake .. -DCOVERAGE_TEST=ON -DCINATRA_ENABLE_SSL=ON
make -j
export LLVM_PROFILE_FILE="test_cinatra-%m.profraw"
Expand All @@ -46,11 +47,17 @@ jobs:
llvm-cov show -object test_cinatra -object test_corofile -object test_time_util -object test_http_parse -object test_metric -instr-profile=test_cinatra.profdata -format=html -output-dir=../.coverage_llvm_cov -ignore-filename-regex="example|asio|cmdline|async_simple|tests" -show-instantiations=false
echo "Done!"

- name: List files in the repository
run: |
ls ${{ github.workspace }}
ls ../
ls ../.coverage_llvm_cov

- name: Upload Coverage Results
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v4.3.6
with:
name: llvm-cov
path: ${{github.workspace}}/build/.coverage_llvm_cov
path: ../.coverage_llvm_cov

- name: Create Code Coverage Report
working-directory: ${{github.workspace}}/build/tests
Expand Down
Loading