From 92ad28aa35456ce17358872712ecef6e7d936989 Mon Sep 17 00:00:00 2001 From: qicosmos Date: Thu, 7 Nov 2024 16:12:35 +0800 Subject: [PATCH] test (#636) --- .github/workflows/linux_llvm_cov.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/linux_llvm_cov.yml b/.github/workflows/linux_llvm_cov.yml index 12de2d0e..c0a4ec70 100644 --- a/.github/workflows/linux_llvm_cov.yml +++ b/.github/workflows/linux_llvm_cov.yml @@ -5,7 +5,7 @@ on: branches: - main - master - - coro_http_server + - test_conv1 jobs: build: @@ -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" @@ -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