mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
Use llvm-cov in macos CI
This commit is contained in:
3
.github/build.sh
vendored
3
.github/build.sh
vendored
@@ -43,6 +43,9 @@ case "${CC:-gcc}" in
|
||||
lcov --list lcov-coverage.txt
|
||||
;;
|
||||
clang)
|
||||
if [[ x$(uname) == xDarwin ]]; then
|
||||
export PATH=$PATH:/Library/Developer/CommandLineTools/usr/bin
|
||||
fi
|
||||
llvm-profdata merge unittest.profraw -o unittest.profdata
|
||||
llvm-profdata merge inttest.profraw -o inttest.profdata
|
||||
llvm-cov show -show-line-counts-or-regions -instr-profile=unittest.profdata test/unittest_bin > unittest-cmake-coverage.txt
|
||||
|
||||
4
.github/workflows/build.yml
vendored
4
.github/workflows/build.yml
vendored
@@ -103,6 +103,10 @@ jobs:
|
||||
macos:
|
||||
name: macOS
|
||||
runs-on: macos-latest
|
||||
env:
|
||||
# This doesn't make big difference, since it's the same compiler, but we also use this variable to select lcov vs llvm-cov
|
||||
CXX: clang++
|
||||
CC: clang
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
|
||||
Reference in New Issue
Block a user