From 525863ac26aad7f5a6db09e206709d1896bc7adf Mon Sep 17 00:00:00 2001 From: Kim Kulling Date: Mon, 26 Apr 2021 20:46:52 +0200 Subject: [PATCH] Add cppcoveralls to CI - closes https://github.com/assimp/assimp/issues/3656 --- .github/workflows/ccpp.yml | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ccpp.yml b/.github/workflows/ccpp.yml index 510ae8e7f..0a8bed259 100644 --- a/.github/workflows/ccpp.yml +++ b/.github/workflows/ccpp.yml @@ -13,7 +13,7 @@ jobs: strategy: fail-fast: false matrix: - name: [ubuntu-latest-g++, macos-latest-clang++, windows-latest-cl.exe, ubuntu-latest-clang++, ubuntu-gcc-hunter, macos-clang-hunter, windows-msvc-hunter] + name: [ubuntu-latest-g++, macos-latest-clang++, windows-latest-cl.exe, ubuntu-latest-clang++, ubuntu-gcc-hunter, macos-clang-hunter, windows-msvc-hunter, ubuntu-latest-gcov] # For Windows msvc, for Linux and macOS let's use the clang compiler, use gcc for Linux. include: - name: windows-latest-cl.exe @@ -41,6 +41,10 @@ jobs: - name: windows-msvc-hunter os: windows-latest toolchain: ninja-vs-win64-cxx17 + - name: ubuntu-latest-gcov + os: ubuntu-latest + cxx: g++ + cc: gcc steps: - uses: actions/checkout@v2 @@ -67,8 +71,14 @@ jobs: uses: actions/checkout@v2 with: repository: cpp-pm/polly - path: cmake/polly - + path: cmake/polly + + - name: Install cppcov for c++ + if: endfWith(matrix.name,'latest-gcov') + run: | + pip install --user cpp-coveralls + run: echo "::set-output name=args::-ASSIMP_COVERALLS=1" + - name: Remove contrib directory for Hunter builds if: contains(matrix.name, 'hunter') uses: JesseTG/rm@v1.0.2