Support fast_float 7.0.0 #605
Workflow file for this run
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: | |
paths: | |
- '.github/workflows/coverage.yml' | |
- 'cmake/**' | |
- 'include/**' | |
- 'scripts/**' | |
- 'src/**' | |
- 'tests/**' | |
- '**/CMakeLists.txt' | |
pull_request: | |
paths: | |
- '.github/workflows/coverage.yml' | |
- 'cmake/**' | |
- 'include/**' | |
- 'scripts/**' | |
- 'src/**' | |
- 'tests/**' | |
- '**/CMakeLists.txt' | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref_name }}-${{ github.ref_type == 'branch' && github.sha }}-${{ github.event_name == 'workflow_dispatch' }}-${{ github.event_name == 'schedule' }}-${{ github.event.schedule }} | |
cancel-in-progress: true | |
env: | |
APT_INSTALL: | | |
sudo apt-get install | |
-yq --no-install-suggests --no-install-recommends | |
--allow-unauthenticated --allow-downgrades --allow-change-held-packages | |
CCACHE_ABSSTDERR: true | |
CCACHE_COMPRESS: true | |
CCACHE_COMPRESSLEVEL: 6 | |
CCACHE_DIR: "/tmp/ccache" | |
CCACHE_MAXSIZE: 50M | |
CCACHE_NOHASHDIR: true | |
CCACHE_SLOPPINESS: "pch_defines,time_macros" | |
CCACHE_UNIFY: true | |
DEBIAN_FRONTEND: noninteractive | |
CXX: g++-11 | |
CMAKE_C_COMPILER_LAUNCHER: ccache | |
CMAKE_CXX_COMPILER_LAUNCHER: ccache | |
jobs: | |
codecov: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Setup CMake and Ninja | |
uses: lukka/get-cmake@latest | |
- name: Create Build Environment | |
run: | | |
sudo locale-gen en_US.UTF-8 | |
sudo locale-gen fi_FI.UTF-8 | |
sudo update-locale | |
sudo locale -a | |
sudo apt-get install -yq lcov ccache | |
mkdir ${{ runner.workspace }}/build | |
mkdir ${{ runner.workspace }}/report | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Load ccache | |
uses: actions/cache@v4 | |
with: | |
path: ${{ env.CCACHE_DIR }} | |
key: ccache-coverage-${{ github.sha }} | |
restore-keys: | | |
ccache-coverage-${{ github.ref }} | |
ccache-coverage-${{ github.base_ref }} | |
ccache-coverage | |
- name: Setup ccache | |
run: | | |
ccache --version | |
ccache --zero-stats | |
ccache --show-stats | |
ccache --show-config | |
- name: Run CMake | |
working-directory: ${{ runner.workspace }}/build | |
run: | | |
cmake -G Ninja -DCMAKE_BUILD_TYPE=Debug \ | |
-DCMAKE_CXX_STANDARD=20 \ | |
-DSCN_TESTS_LOCALIZED=ON -DSCN_COVERAGE=ON \ | |
$GITHUB_WORKSPACE | |
- name: Build | |
working-directory: ${{ runner.workspace }}/build | |
run: | | |
cmake --build . -- -k 0 | |
- name: Show ccache stats | |
run: | | |
ccache --show-stats | |
- name: Generate Coverage Report | |
working-directory: ${{ runner.workspace }}/build | |
run: | | |
./coverage.sh | |
cp coverage-filtered.info ${{ runner.workspace }}/report/coverage.info | |
- name: Upload Coverage Report | |
uses: codecov/codecov-action@v3 | |
with: | |
directory: ${{ runner.workspace }}/report | |
fail_ci_if_error: true | |
verbose: true | |
token: ${{ secrets.CODECOV_TOKEN }} |