build: try to disable warnings for cr.h #5172
This file contains 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: coverage | |
on: [push, pull_request] | |
jobs: | |
codecov: | |
timeout-minutes: 15 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Compile tests | |
working-directory: build | |
env: | |
CXXFLAGS: "--coverage -fno-elide-constructors -fno-inline -fno-default-inline" | |
CXX: g++ | |
run: | | |
cmake -DENTT_BUILD_TESTING=ON -DENTT_BUILD_LIB=ON -DENTT_BUILD_EXAMPLE=ON .. | |
make -j4 | |
- name: Run tests | |
working-directory: build | |
env: | |
CTEST_OUTPUT_ON_FAILURE: 1 | |
run: ctest -C Debug -j4 | |
- name: Collect data | |
working-directory: build | |
run: | | |
sudo apt install lcov | |
lcov -c -d . -o coverage.info --ignore-errors gcov,gcov,mismatch,mismatch | |
lcov -l coverage.info | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
files: build/coverage.info | |
name: EnTT | |
fail_ci_if_error: true |