Partial test outputs, clean up coverage #238
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: C/C++ CI | |
on: | |
push: | |
branches: master | |
pull_request: | |
branches: '**' | |
jobs: | |
build: | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: true | |
- run: sudo apt-get update | |
- name: ccache | |
uses: hendrikmuhs/ccache-action@v1.2 | |
- name: install dependencies | |
run: tools/install_dependencies.sh | |
- name: check formatting | |
run: tools/check_style.sh | |
- name: cmake | |
run: mkdir build && cd build && PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH" cmake .. -G Ninja -DCMAKE_BUILD_TYPE=asan | |
- name: Address Sanitizer Build | |
run: cd build && ninja | |
- name: Address Sanitizer Test | |
run: cd build && ASAN_OPTIONS=detect_leaks=0 ninja test | |
- name: Coverage Build | |
run: cd build && cmake -DCMAKE_BUILD_TYPE=Coverage .. && ninja | |
- name: Coverage Test | |
run: cd build && ninja test_coverage_html | |
- uses: codecov/codecov-action@v5 | |
with: | |
fail_ci_if_error: true | |
files: build/clean_coverage.info | |
token: ${{ secrets.CODECOV_TOKEN }} | |
verbose: true | |
disable_search: true |