Skip to content

[hotfix] Run single core when building with GCC #879

[hotfix] Run single core when building with GCC

[hotfix] Run single core when building with GCC #879

name: clang++
on:
push:
branches:
- 'main'
workflow_dispatch:
pull_request:
jobs:
build:
name: ci-ubuntu-24.04-clang-18
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
- name: Install Ninja
uses: seanmiddleditch/gha-setup-ninja@master
- name: Configure CMake
run: |
cmake -S ${{github.workspace}} --preset=unixlike-clang-debug \
-DCMAKE_C_COMPILER=/usr/bin/clang-18 \
-DCMAKE_CXX_COMPILER=/usr/bin/clang++-18 \
-DCODE_COVERAGE:BOOL=ON \
-DBUILD_TESTING:BOOL=ON
- name: Build
run: cmake --build --preset=unixlike-clang-debug
- name: Test
run: ctest --preset=unixlike-clang-debug
- name: Generate code coverage
working-directory: ${{github.workspace}}/build/unixlike-clang-debug
run: |
ninja faker-ccov-all \
&& llvm-cov-18 show `cat ccov/binaries.list` -instr-profile=ccov/all-merged.profdata > coverage.txt
- name: Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOVTOKEN }}