Skip to content

Commit

Permalink
Rearrange steps
Browse files Browse the repository at this point in the history
  • Loading branch information
pzxmsry committed Jan 15, 2024
1 parent ed89a81 commit 6b6f588
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/cmake_ctest_multiplatform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,15 +90,15 @@ jobs:
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
run: ctest --build-config ${{ matrix.build_type }}

- name: Install llvm-cov lcov
run: sudo apt update && sudo apt install llvm lcov
if: ${{ matrix.os == 'ubuntu-latest' }}

- name: Create gcov for clang script
working-directory: ${{ steps.strings.outputs.build-output-dir }}
run: echo '#!/bin/bash' >> gcov_for_clang && echo "exec llvm-cov gcov \"\$@\"" >> gcov_for_clang && sudo cp gcov_for_clang /usr/bin
if: ${{ matrix.os == 'ubuntu-latest' && matrix.c_compiler == 'clang' }}

- name: Install llvm-cov lcov
run: sudo apt update && sudo apt install llvm lcov
if: ${{ matrix.os == 'ubuntu-latest' }}

- name: Gather coverage GCC
working-directory: ${{ steps.strings.outputs.build-output-dir }}
run: lcov --capture --directory . | sed s@^SF:%s/@SF:@ > lcov.info
Expand Down

0 comments on commit 6b6f588

Please sign in to comment.