mirror of
https://github.com/biojppm/rapidyaml.git
synced 2026-01-18 21:41:18 +01:00
- ensure gcc and clang are tested with several optimization levels (-O3,-O2,-O1,-Os). This reveals a number of problems in gcc11,12,13 (but not 14), which should be addressed next. - use continue-on-error: false to ensure the final workflow result is red when any of its jobs fails
102 lines
3.0 KiB
YAML
102 lines
3.0 KiB
YAML
# DO NOT EDIT - GENERATED FROM .github/workflows/coverage.ys
|
|
|
|
name: coverage
|
|
defaults:
|
|
run:
|
|
shell: bash -e -x {0}
|
|
'on':
|
|
workflow_dispatch: null
|
|
push:
|
|
branches:
|
|
- master
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
env:
|
|
PROJ_PFX_TARGET: ryml-
|
|
PROJ_PFX_CMAKE: RYML_
|
|
CMAKE_FLAGS: -DRYML_TEST_SUITE=ON
|
|
NUM_JOBS_BUILD: null
|
|
jobs:
|
|
coverage:
|
|
if: always()
|
|
continue-on-error: false
|
|
name: coverage/c++${{matrix.std}}${{matrix.namesfx}}
|
|
runs-on: ${{matrix.os}}
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
include:
|
|
- std: 11
|
|
cxx: g++-9
|
|
bt: Coverage
|
|
os: ubuntu-20.04
|
|
- std: 17
|
|
cxx: g++-9
|
|
bt: Coverage
|
|
os: ubuntu-20.04
|
|
- std: 11
|
|
cxx: g++-9
|
|
bt: Coverage
|
|
os: ubuntu-20.04
|
|
cmk: -DRYML_DBG=ON
|
|
namesfx: /dbg
|
|
- std: 17
|
|
cxx: g++-9
|
|
bt: Coverage
|
|
os: ubuntu-20.04
|
|
cmk: -DRYML_DBG=ON
|
|
namesfx: /dbg
|
|
env:
|
|
STD: ${{matrix.std}}
|
|
CXX_: ${{matrix.cxx}}
|
|
BT: ${{matrix.bt}}
|
|
BITLINKS: ${{matrix.bitlinks}}
|
|
VG: ${{matrix.vg}}
|
|
SAN: ${{matrix.san}}
|
|
LINT: ${{matrix.lint}}
|
|
OS: ${{matrix.os}}
|
|
CMAKE_FLAGS: ${{matrix.cmk}}
|
|
CODECOV_TOKEN: ${{secrets.CODECOV_TOKEN}}
|
|
COVERALLS_REPO_TOKEN: ${{secrets.COVERALLS_REPO_TOKEN}}
|
|
steps:
|
|
- name: checkout (action)
|
|
uses: actions/checkout@v4
|
|
with:
|
|
submodules: recursive
|
|
fetch-depth: 0
|
|
- name: install requirements
|
|
run: source .github/reqs.sh && c4_install_test_requirements $OS
|
|
- name: show info
|
|
run: source .github/setenv.sh && c4_show_info
|
|
- name: static64-configure-------------------------------------------------
|
|
run: source .github/setenv.sh && c4_cfg_test static64
|
|
- name: static64-build
|
|
run: source .github/setenv.sh && c4_build_test static64
|
|
- name: static64-run
|
|
run: source .github/setenv.sh && c4_build_target static64 ryml-coverage
|
|
- name: static64-coverage-artifacts
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: coverage-static64-${{strategy.job-index}}
|
|
path: |
|
|
build/static64/lcov
|
|
build/static64/coverage3-final_filtered.lcov
|
|
- name: static64-submit-codecov
|
|
run: source .github/setenv.sh && c4_submit_coverage static64 codecov
|
|
- name: static32-configure-------------------------------------------------
|
|
run: source .github/setenv.sh && c4_cfg_test static32
|
|
- name: static32-build
|
|
run: source .github/setenv.sh && c4_build_test static32
|
|
- name: static32-run
|
|
run: source .github/setenv.sh && c4_build_target static32 ryml-coverage
|
|
- name: static32-coverage-artifacts
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: coverage-static32-cxx${{matrix.std}}-${{strategy.job-index}}
|
|
path: |
|
|
build/static32/lcov
|
|
build/static32/coverage3-final_filtered.lcov
|
|
- name: static32-submit-codecov
|
|
run: source .github/setenv.sh && c4_submit_coverage static32 codecov
|