Skip to content

✨ Support defects in print function. #1557

✨ Support defects in print function.

✨ Support defects in print function. #1557

Workflow file for this run

name: Coverage CI
on:
push:
branches: [ 'main' ]
paths:
- '**/*.hpp'
- '**/*.cpp'
- '**/*.cmake'
- '**/CMakeLists.txt'
- 'libs/**'
- '.github/workflows/coverage.yml'
pull_request:
branches: [ 'main' ]
paths:
- '**/*.hpp'
- '**/*.cpp'
- '**/*.cmake'
- '**/CMakeLists.txt'
- 'libs/**'
- '.github/workflows/coverage.yml'
merge_group:
defaults:
run:
shell: bash
env:
BUILD_TYPE: Debug
Z3_VERSION: 4.10.0
jobs:
build_and_test:
strategy:
matrix:
os: [ ubuntu-22.04 ]
compiler: [ g++-11 ]
name: Coverage on ${{matrix.os}} with ${{matrix.compiler}}
runs-on: ${{matrix.os}}
steps:
- name: Install the Compiler
run: sudo apt-get update && sudo apt-get install -yq ${{matrix.compiler}}
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.9.x'
- name: Clone Repository
uses: actions/checkout@v3
with:
submodules: recursive
- name: Setup ccache
uses: hendrikmuhs/[email protected]
with:
key: '${{matrix.os}}-${{matrix.compiler}}-${{matrix.build_type}}'
variant: ccache
save: true
max-size: 10G
- name: Setup mold
uses: rui314/setup-mold@v1
- name: Install pip packages
uses: BSFishy/pip-action@v1
with:
requirements: ${{github.workspace}}/libs/mugen/requirements.txt
- name: Setup Z3 Solver
id: z3
uses: cda-tum/setup-z3@v1
with:
version: ${{env.Z3_VERSION}}
platform: linux
architecture: x64
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: Create Build Environment
run: cmake -E make_directory ${{github.workspace}}/build
- name: Configure CMake
working-directory: ${{github.workspace}}/build
run: >
cmake ${{github.workspace}}
-DCMAKE_CXX_COMPILER=${{matrix.compiler}}
-DCMAKE_BUILD_TYPE=$BUILD_TYPE
-DFICTION_CLI=OFF
-DFICTION_TEST=ON
-DFICTION_Z3=ON
-DFICTION_ENABLE_MUGEN=ON
-DFICTION_PROGRESS_BARS=OFF
-DMOCKTURTLE_EXAMPLES=OFF
-DWARNINGS_AS_ERRORS=OFF
-DENABLE_COVERAGE=ON
- name: Build
working-directory: ${{github.workspace}}/build
run: cmake --build . --config $BUILD_TYPE
- name: Test
working-directory: ${{github.workspace}}/build
run: ctest -C $BUILD_TYPE --verbose --output-on-failure --parallel 2
- name: Setup and run lcov
run: |
sudo apt-get install lcov
lcov -t "result" -o lcov.info -c -d ${{github.workspace}}/build/
lcov -e lcov.info "${{github.workspace}}/include*" -o lcov_filtered.info
lcov -l lcov_filtered.info
- name: Upload report to Codecov
uses: codecov/codecov-action@v3
with:
files: ${{github.workspace}}/lcov_filtered.info
fail_ci_if_error: true
verbose: true
token: ${{ secrets.CODECOV_TOKEN }}