Compare commits

...

11 Commits

Author SHA1 Message Date
Kim Kulling 6d89622097
Update ccpp.yml 2021-11-17 11:42:49 +01:00
Kim Kulling d575e28937
Update ccpp.yml 2021-11-17 11:42:07 +01:00
Kim Kulling dc6b49a12a
Merge branch 'master' into kimkulling-issue_2656_add_cppcoverall 2021-11-17 09:00:25 +01:00
Kim Kulling 703405ebef
Update ccpp.yml 2021-11-12 16:05:12 +01:00
Kim Kulling 081974efdf
Update ccpp.yml 2021-11-12 13:43:30 +01:00
Kim Kulling 5c8eceaca3
Merge branch 'master' into kimkulling-issue_2656_add_cppcoverall 2021-11-12 13:13:13 +01:00
Kim Kulling b2ca2ceb3f
Update ccpp.yml 2021-04-27 15:02:32 +02:00
Kim Kulling ff2ab89438
Update ccpp.yml 2021-04-26 23:15:38 +02:00
Kim Kulling 4f0fd49aa8
Update ccpp.yml 2021-04-26 21:05:54 +02:00
Kim Kulling 00217682f7
fix typo 2021-04-26 20:53:50 +02:00
Kim Kulling 525863ac26
Add cppcoveralls to CI
- closes https://github.com/assimp/assimp/issues/3656
2021-04-26 20:46:52 +02:00
1 changed files with 16 additions and 3 deletions

View File

@ -13,7 +13,7 @@ jobs:
strategy: strategy:
fail-fast: false fail-fast: false
matrix: 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. # For Windows msvc, for Linux and macOS let's use the clang compiler, use gcc for Linux.
include: include:
- name: windows-latest-cl.exe - name: windows-latest-cl.exe
@ -41,6 +41,10 @@ jobs:
- name: windows-msvc-hunter - name: windows-msvc-hunter
os: windows-latest os: windows-latest
toolchain: ninja-vs-win64-cxx17 toolchain: ninja-vs-win64-cxx17
- name: ubuntu-latest-gcov
os: ubuntu-latest
cxx: g++
cc: gcc
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
@ -69,6 +73,9 @@ jobs:
repository: cpp-pm/polly repository: cpp-pm/polly
path: cmake/polly path: cmake/polly
- name: Install lcov
uses: danielealbano/lcov-action@v1
- name: Remove contrib directory for Hunter builds - name: Remove contrib directory for Hunter builds
if: contains(matrix.name, 'hunter') if: contains(matrix.name, 'hunter')
uses: JesseTG/rm@v1.0.2 uses: JesseTG/rm@v1.0.2
@ -99,7 +106,7 @@ jobs:
- name: Set Hunter specific CMake arguments - name: Set Hunter specific CMake arguments
if: contains(matrix.name, 'hunter') if: contains(matrix.name, 'hunter')
id: hunter_extra_cmake_args id: hunter_extra_cmake_args
run: echo "::set-output name=args::-DBUILD_SHARED_LIBS=OFF -DASSIMP_HUNTER_ENABLED=ON -DCMAKE_TOOLCHAIN_FILE=${{ github.workspace }}/cmake/polly/${{ matrix.toolchain }}.cmake" run: echo "::set-output name=args::-DBUILD_SHARED_LIBS=OFF -DASSIMP_HUNTER_ENABLED=ON -DCMAKE_TOOLCHAIN_FILE=${{ github.workspace }}/cmake/polly/${{ matrix.toolchain }}.cmake -DASSIMP_COVERALLS=ON"
- name: configure and build - name: configure and build
uses: lukka/run-cmake@v3 uses: lukka/run-cmake@v3
@ -122,6 +129,12 @@ jobs:
run: cd build/bin && ./unit ${{ steps.hunter_extra_test_args.outputs.args }} run: cd build/bin && ./unit ${{ steps.hunter_extra_test_args.outputs.args }}
shell: bash shell: bash
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
cmakeAppendedArgs: '-DASSIMP_COVERALLS=ON'
- uses: actions/upload-artifact@v2 - uses: actions/upload-artifact@v2
if: matrix.name == 'windows-msvc' if: matrix.name == 'windows-msvc'
with: with: