refactor error API: update CI files

This commit is contained in:
Joao Paulo Magalhaes
2025-03-22 21:49:51 +00:00
parent 209c487e1d
commit 60520dd2ba
7 changed files with 56 additions and 39 deletions

View File

@@ -24,6 +24,7 @@ jobs:
:: setup-job('clang' 'tabtokens')
name: tabtokens/${{matrix.cxx}}/c++${{matrix.std}}/${{matrix.bt}}
:: runs-on-docker-c4core('22.04')
needs: canary
strategy:
fail-fast: false
matrix:
@@ -37,6 +38,7 @@ jobs:
:: setup-job('clang' 'noexceptions')
name: noexceptions/${{matrix.cxx}}/c++${{matrix.std}}/${{matrix.bt}}
:: runs-on-docker-c4core('22.04')
needs: canary
strategy:
fail-fast: false
matrix:
@@ -50,6 +52,7 @@ jobs:
:: setup-job('clang' 'extended')
name: extended/${{matrix.cxx}}/${{matrix.bits}}bit/c++${{matrix.std}}/vg${{matrix.vg}}
:: runs-on-docker-c4core('${{matrix.img}}')
needs: canary
strategy:
fail-fast: false
matrix:
@@ -109,6 +112,7 @@ jobs:
:: setup-job('clang' 'clangsan')
name: san/${{matrix.bt}}/c++${{matrix.std}}
:: runs-on-docker-c4core('22.04')
needs: canary
strategy:
fail-fast: false
matrix:
@@ -118,7 +122,7 @@ jobs:
std [11 14 17 20]
: !
std:: std
cxx: clang++-17
cxx: clang++-18
bt:: san
bitlinks: static64
env:: load('share/env.yaml')

View File

@@ -13,14 +13,12 @@ jobs:
matrix:
include:
# test also with the debug code enabled
- {std: 11, namesfx: 64bit , cmk: "-DCMAKE_CXX_FLAGS=-m64"}
- {std: 11, namesfx: 64bit_dbg, cmk: "-DCMAKE_CXX_FLAGS=-m64 -DRYML_DBG=ON"}
- {std: 17, namesfx: 64bit , cmk: "-DCMAKE_CXX_FLAGS=-m64"}
- {std: 17, namesfx: 64bit_dbg, cmk: "-DCMAKE_CXX_FLAGS=-m64 -DRYML_DBG=ON"}
- {std: 11, namesfx: 32bit , cmk: "-DCMAKE_CXX_FLAGS=-m32"}
- {std: 11, namesfx: 32bit_dbg, cmk: "-DCMAKE_CXX_FLAGS=-m32 -DRYML_DBG=ON"}
- {std: 17, namesfx: 32bit , cmk: "-DCMAKE_CXX_FLAGS=-m32"}
- {std: 17, namesfx: 32bit_dbg, cmk: "-DCMAKE_CXX_FLAGS=-m32 -DRYML_DBG=ON"}
- {std: 11, namesfx: 64bit , cmk: "-DCMAKE_CXX_FLAGS=-m64"}
- {std: 11, namesfx: 64bit_noexc, cmk: "-DCMAKE_CXX_FLAGS='-m64 -fno-exceptions -fno-rtti'"}
- {std: 11, namesfx: 64bit_exc , cmk: "-DCMAKE_CXX_FLAGS='-m64' -DRYML_DEFAULT_CALLBACK_USES_EXCEPTIONS=ON"}
- {std: 11, namesfx: 64bit_dbg , cmk: "-DCMAKE_CXX_FLAGS=-m64 -DRYML_DBG=ON"}
- {std: 11, namesfx: 32bit , cmk: "-DCMAKE_CXX_FLAGS=-m32"}
- {std: 11, namesfx: 32bit_dbg , cmk: "-DCMAKE_CXX_FLAGS=-m32 -DRYML_DBG=ON"}
env:
GCC_VERSION: 13 # the default compiler
LCOV_ARGS: -v --ignore-errors mismatch,mismatch --ignore-errors unused,unused

View File

@@ -32,6 +32,7 @@ jobs:
:: setup-job('gcc' 'tabtokens')
name: tabtokens/${{matrix.cxx}}/c++${{matrix.std}}/${{matrix.bt}}
:: runs-on-docker-c4core('${{matrix.img}}')
needs: canary
strategy:
fail-fast: false
matrix:
@@ -44,6 +45,7 @@ jobs:
:: setup-job('gcc' 'noexceptions')
name: noexceptions/${{matrix.cxx}}/c++${{matrix.std}}/${{matrix.bt}}
:: runs-on-docker-c4core('${{matrix.img}}')
needs: canary
strategy:
fail-fast: false
matrix:
@@ -56,6 +58,7 @@ jobs:
:: setup-job('gcc' 'misbuild')
name: misbuild#${{matrix.issue}}/gcc${{matrix.gcc}}/c++${{matrix.std}}
:: runs-on-docker-c4core('${{matrix.img}}')
needs: canary
strategy:
fail-fast: false
matrix:
@@ -86,7 +89,8 @@ jobs:
cmake --build build --target ryml-test-run
#----------------------------------------------------------------------------
# with valgrind: only latest gcc
# with valgrind too slow: only latest gcc
strategy-latest-gcc =::
fail-fast: false
matrix:
@@ -104,6 +108,7 @@ jobs:
:: setup-job('gcc' 'vg1')
name: extended/${{matrix.cxx}}/${{matrix.bits}}bit/c++${{matrix.std}}/vg/D_O1_O2
:: runs-on-docker-c4core('${{matrix.img}}')
needs: canary
strategy:: strategy-latest-gcc
env:: load('share/env.yaml')
steps:
@@ -118,6 +123,7 @@ jobs:
:: setup-job('gcc' 'vg2')
name: extended/${{matrix.cxx}}/${{matrix.bits}}bit/c++${{matrix.std}}/vg/O3_Os
:: runs-on-docker-c4core('${{matrix.img}}')
needs: canary
strategy:: strategy-latest-gcc
env:: load('share/env.yaml')
steps:
@@ -133,6 +139,7 @@ jobs:
:: setup-job('gcc' 'extended')
name: extended/${{matrix.cxx}}/${{matrix.bits}}bit/c++${{matrix.std}}
:: runs-on-docker-c4core('${{matrix.img}}')
needs: canary
strategy:
fail-fast: false
matrix:
@@ -175,6 +182,7 @@ jobs:
:: setup-job('gcc' 'gccsan')
name: gccsan/${{matrix.bt}}/${{matrix.cxx}}/c++${{matrix.std}}
:: runs-on-docker-c4core('22.04')
needs: canary
strategy:
fail-fast: false
matrix:
@@ -190,6 +198,7 @@ jobs:
arm:
:: setup-job('gcc' 'arm') + runs-on-docker-c4core('18.04')
name: arm/c++${{matrix.std}}/${{matrix.bt}}
needs: canary
strategy:
fail-fast: false
matrix:

View File

@@ -94,6 +94,7 @@ jobs:
name: tabtokens/${{matrix.cxx}}/c++${{matrix.std}}/${{matrix.bt}}
runs-on: ubuntu-24.04
container: ghcr.io/biojppm/c4core/ubuntu22.04:latest
needs: canary
strategy:
fail-fast: false
matrix:
@@ -164,6 +165,7 @@ jobs:
name: noexceptions/${{matrix.cxx}}/c++${{matrix.std}}/${{matrix.bt}}
runs-on: ubuntu-24.04
container: ghcr.io/biojppm/c4core/ubuntu22.04:latest
needs: canary
strategy:
fail-fast: false
matrix:
@@ -234,6 +236,7 @@ jobs:
name: extended/${{matrix.cxx}}/${{matrix.bits}}bit/c++${{matrix.std}}/vg${{matrix.vg}}
runs-on: ubuntu-24.04
container: ghcr.io/biojppm/c4core/ubuntu${{matrix.img}}:latest
needs: canary
strategy:
fail-fast: false
matrix:
@@ -629,72 +632,73 @@ jobs:
name: san/${{matrix.bt}}/c++${{matrix.std}}
runs-on: ubuntu-24.04
container: ghcr.io/biojppm/c4core/ubuntu22.04:latest
needs: canary
strategy:
fail-fast: false
matrix:
include:
- std: 11
cxx: clang++-17
cxx: clang++-18
bt: asan
bitlinks: static64
- std: 14
cxx: clang++-17
cxx: clang++-18
bt: asan
bitlinks: static64
- std: 17
cxx: clang++-17
cxx: clang++-18
bt: asan
bitlinks: static64
- std: 20
cxx: clang++-17
cxx: clang++-18
bt: asan
bitlinks: static64
- std: 11
cxx: clang++-17
cxx: clang++-18
bt: lsan
bitlinks: static64
- std: 14
cxx: clang++-17
cxx: clang++-18
bt: lsan
bitlinks: static64
- std: 17
cxx: clang++-17
cxx: clang++-18
bt: lsan
bitlinks: static64
- std: 20
cxx: clang++-17
cxx: clang++-18
bt: lsan
bitlinks: static64
- std: 11
cxx: clang++-17
cxx: clang++-18
bt: tsan
bitlinks: static64
- std: 14
cxx: clang++-17
cxx: clang++-18
bt: tsan
bitlinks: static64
- std: 17
cxx: clang++-17
cxx: clang++-18
bt: tsan
bitlinks: static64
- std: 20
cxx: clang++-17
cxx: clang++-18
bt: tsan
bitlinks: static64
- std: 11
cxx: clang++-17
cxx: clang++-18
bt: ubsan
bitlinks: static64
- std: 14
cxx: clang++-17
cxx: clang++-18
bt: ubsan
bitlinks: static64
- std: 17
cxx: clang++-17
cxx: clang++-18
bt: ubsan
bitlinks: static64
- std: 20
cxx: clang++-17
cxx: clang++-18
bt: ubsan
bitlinks: static64
env:

View File

@@ -32,12 +32,12 @@ jobs:
namesfx: 64bit
cmk: -DCMAKE_CXX_FLAGS=-m64
- std: 11
namesfx: 64bit_dbg
cmk: -DCMAKE_CXX_FLAGS=-m64 -DRYML_DBG=ON
- std: 17
namesfx: 64bit
cmk: -DCMAKE_CXX_FLAGS=-m64
- std: 17
namesfx: 64bit_noexc
cmk: -DCMAKE_CXX_FLAGS='-m64 -fno-exceptions -fno-rtti'
- std: 11
namesfx: 64bit_exc
cmk: -DCMAKE_CXX_FLAGS='-m64' -DRYML_DEFAULT_CALLBACK_USES_EXCEPTIONS=ON
- std: 11
namesfx: 64bit_dbg
cmk: -DCMAKE_CXX_FLAGS=-m64 -DRYML_DBG=ON
- std: 11
@@ -46,12 +46,6 @@ jobs:
- std: 11
namesfx: 32bit_dbg
cmk: -DCMAKE_CXX_FLAGS=-m32 -DRYML_DBG=ON
- std: 17
namesfx: 32bit
cmk: -DCMAKE_CXX_FLAGS=-m32
- std: 17
namesfx: 32bit_dbg
cmk: -DCMAKE_CXX_FLAGS=-m32 -DRYML_DBG=ON
env:
GCC_VERSION: 13
LCOV_ARGS: -v --ignore-errors mismatch,mismatch --ignore-errors unused,unused

View File

@@ -168,6 +168,7 @@ jobs:
name: tabtokens/${{matrix.cxx}}/c++${{matrix.std}}/${{matrix.bt}}
runs-on: ubuntu-24.04
container: ghcr.io/biojppm/c4core/ubuntu${{matrix.img}}:latest
needs: canary
strategy:
fail-fast: false
matrix:
@@ -312,6 +313,7 @@ jobs:
name: noexceptions/${{matrix.cxx}}/c++${{matrix.std}}/${{matrix.bt}}
runs-on: ubuntu-24.04
container: ghcr.io/biojppm/c4core/ubuntu${{matrix.img}}:latest
needs: canary
strategy:
fail-fast: false
matrix:
@@ -456,6 +458,7 @@ jobs:
name: misbuild#${{matrix.issue}}/gcc${{matrix.gcc}}/c++${{matrix.std}}
runs-on: ubuntu-24.04
container: ghcr.io/biojppm/c4core/ubuntu${{matrix.img}}:latest
needs: canary
strategy:
fail-fast: false
matrix:
@@ -513,6 +516,7 @@ jobs:
name: extended/${{matrix.cxx}}/${{matrix.bits}}bit/c++${{matrix.std}}/vg/D_O1_O2
runs-on: ubuntu-24.04
container: ghcr.io/biojppm/c4core/ubuntu${{matrix.img}}:latest
needs: canary
strategy:
fail-fast: false
matrix:
@@ -707,6 +711,7 @@ jobs:
name: extended/${{matrix.cxx}}/${{matrix.bits}}bit/c++${{matrix.std}}/vg/O3_Os
runs-on: ubuntu-24.04
container: ghcr.io/biojppm/c4core/ubuntu${{matrix.img}}:latest
needs: canary
strategy:
fail-fast: false
matrix:
@@ -873,6 +878,7 @@ jobs:
name: extended/${{matrix.cxx}}/${{matrix.bits}}bit/c++${{matrix.std}}
runs-on: ubuntu-24.04
container: ghcr.io/biojppm/c4core/ubuntu${{matrix.img}}:latest
needs: canary
strategy:
fail-fast: false
matrix:
@@ -1193,6 +1199,7 @@ jobs:
name: gccsan/${{matrix.bt}}/${{matrix.cxx}}/c++${{matrix.std}}
runs-on: ubuntu-24.04
container: ghcr.io/biojppm/c4core/ubuntu22.04:latest
needs: canary
strategy:
fail-fast: false
matrix:
@@ -1318,6 +1325,7 @@ jobs:
runs-on: ubuntu-24.04
container: ghcr.io/biojppm/c4core/ubuntu18.04:latest
name: arm/c++${{matrix.std}}/${{matrix.bt}}
needs: canary
strategy:
fail-fast: false
matrix:

View File

@@ -242,7 +242,7 @@ USAGE: bm <case.yml>
}
if(what & kReserveTree)
{
RYML_CHECK(capacity > 0);
_RYML_CHECK_BASIC(capacity > 0);
ryml_tree.reserve(capacity);
}
if(what & kReserveTree)