Skip to content

Safe numerics

Safe numerics #701

Workflow file for this run

name: "Codecov"
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
run:
name: Codecov
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@master
- name: Set up Homebrew
uses: Homebrew/actions/setup-homebrew@master
- name: Build
run: |
brew install gcc@14 lcov ninja binutils
brew link --force binutils
cmake -E make_directory ${{runner.workspace}}/build
cd ${{runner.workspace}}/build
cmake ${GITHUB_WORKSPACE} -GNinja -DCMAKE_CXX_COMPILER=g++-14 -DCMAKE_CXX_FLAGS="--coverage" -DCMAKE_EXE_LINKER_FLAGS="--coverage"
cmake --build .
- name: Run tests
working-directory: ${{runner.workspace}}/build
run: ctest
- name: Generate coverage report
working-directory: ${{runner.workspace}}/build/test/CMakeFiles/test-flux.dir
run: |
lcov --directory . --capture --gcov gcov-14 --output-file coverage.info
lcov --remove coverage.info '*/test/*' --output-file coverage.info
- name: Upload coverage report
uses: codecov/codecov-action@v4
with:
files: ${{runner.workspace}}/build/test/CMakeFiles/test-flux.dir/coverage.info
token: ${{secrets.CODECOV_TOKEN}}
verbose: true