aboutsummaryrefslogtreecommitdiff
path: root/thirdparty/ryml/.github
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2025-11-07 14:49:13 +0100
committerGitHub Enterprise <[email protected]>2025-11-07 14:49:13 +0100
commit24e43a913f29ac3b314354e8ce5175f135bcc64f (patch)
treeca442937ceeb63461012b33a4576e9835099f106 /thirdparty/ryml/.github
parentget oplog attachments (#622) (diff)
downloadzen-24e43a913f29ac3b314354e8ce5175f135bcc64f.tar.xz
zen-24e43a913f29ac3b314354e8ce5175f135bcc64f.zip
switch to xmake for package management (#611)
This change removes our dependency on vcpkg for package management, in favour of bringing some code in-tree in the `thirdparty` folder as well as using the xmake build-in package management feature. For the latter, all the package definitions are maintained in the zen repo itself, in the `repo` folder. It should now also be easier to build the project as it will no longer depend on having the right version of vcpkg installed, which has been a common problem for new people coming in to the codebase. Now you should only need xmake to build. * Bumps xmake requirement on github runners to 2.9.9 to resolve an issue where xmake on Windows invokes cmake with `v144` toolchain which does not exist * BLAKE3 is now in-tree at `thirdparty/blake3` * cpr is now in-tree at `thirdparty/cpr` * cxxopts is now in-tree at `thirdparty/cxxopts` * fmt is now in-tree at `thirdparty/fmt` * robin-map is now in-tree at `thirdparty/robin-map` * ryml is now in-tree at `thirdparty/ryml` * sol2 is now in-tree at `thirdparty/sol2` * spdlog is now in-tree at `thirdparty/spdlog` * utfcpp is now in-tree at `thirdparty/utfcpp` * xmake package repo definitions is in `repo` * implemented support for sanitizers. ASAN is supported on windows, TSAN, UBSAN, MSAN etc are supported on Linux/MacOS though I have not yet tested it extensively on MacOS * the zencore encryption implementation also now supports using mbedTLS which is used on MacOS, though for now we still use openssl on Linux * crashpad * bumps libcurl to 8.11.0 (from 8.8.0) which should address a rare build upload bug
Diffstat (limited to 'thirdparty/ryml/.github')
-rw-r--r--thirdparty/ryml/.github/codeql.yml3
-rw-r--r--thirdparty/ryml/.github/release.sh127
-rw-r--r--thirdparty/ryml/.github/reqs.sh315
-rw-r--r--thirdparty/ryml/.github/setenv.sh434
-rw-r--r--thirdparty/ryml/.github/workflows/benchmarks.yml147
-rw-r--r--thirdparty/ryml/.github/workflows/clang.yml262
-rw-r--r--thirdparty/ryml/.github/workflows/clang_tidy.yml72
-rw-r--r--thirdparty/ryml/.github/workflows/codeql.yml44
-rw-r--r--thirdparty/ryml/.github/workflows/coverage.yml94
-rw-r--r--thirdparty/ryml/.github/workflows/emscripten.yml71
-rw-r--r--thirdparty/ryml/.github/workflows/gcc.yml168
-rw-r--r--thirdparty/ryml/.github/workflows/install.yml105
-rw-r--r--thirdparty/ryml/.github/workflows/macosx.yml103
-rw-r--r--thirdparty/ryml/.github/workflows/rarearchs.yml123
-rw-r--r--thirdparty/ryml/.github/workflows/release.yml366
-rw-r--r--thirdparty/ryml/.github/workflows/samples.yml60
-rw-r--r--thirdparty/ryml/.github/workflows/windows.yml130
17 files changed, 2624 insertions, 0 deletions
diff --git a/thirdparty/ryml/.github/codeql.yml b/thirdparty/ryml/.github/codeql.yml
new file mode 100644
index 000000000..fa58c1d8b
--- /dev/null
+++ b/thirdparty/ryml/.github/codeql.yml
@@ -0,0 +1,3 @@
+query-filters:
+ - exclude:
+ id: cpp/unsigned-comparison-zero
diff --git a/thirdparty/ryml/.github/release.sh b/thirdparty/ryml/.github/release.sh
new file mode 100644
index 000000000..43eb6e71b
--- /dev/null
+++ b/thirdparty/ryml/.github/release.sh
@@ -0,0 +1,127 @@
+#!/bin/bash
+
+
+# useful to iterate when fixing the release:
+# ver=0.2.1 ; ( set -x ; git tag -d v$ver ; git push origin :v$ver ) ; (set -x ; set -e ; tbump --only-patch --non-interactive $ver ; git add -u ; git commit --amend --no-edit ; git tag --annotate --message "v$ver" "v$ver" ; git push -f --tags origin )
+
+
+function c4_release_create()
+{
+ ( \
+ set -euxo pipefail ; \
+ ver=$(_c4_validate_ver $1) ; \
+ branch=$(_c4_validate_branch) ; \
+ c4_release_bump $ver ; \
+ c4_release_commit $ver $branch \
+ )
+}
+
+function c4_release_redo()
+{
+ ( \
+ set -euxo pipefail ; \
+ ver=$(_c4_validate_ver $1) ; \
+ branch=$(_c4_validate_branch) ; \
+ c4_release_delete $ver ; \
+ c4_release_bump $ver ; \
+ c4_release_amend $ver $branch \
+ )
+}
+
+function c4_release_bump()
+{
+ ( \
+ set -euxo pipefail ; \
+ ver=$(_c4_validate_ver $1) ; \
+ tbump --non-interactive --only-patch $ver \
+ )
+}
+
+function c4_release_commit()
+{
+ ( \
+ set -euxo pipefail ; \
+ ver=$(_c4_validate_ver $1) ; \
+ branch=$(_c4_validate_branch) ; \
+ tag=v$ver ; \
+ git add -u ; \
+ git commit -m $tag ; \
+ git tag --annotate --message $tag $tag ; \
+ )
+}
+
+function c4_release_amend()
+{
+ ( \
+ set -euxo pipefail ; \
+ ver=$(_c4_validate_ver $1) ; \
+ branch=$(_c4_validate_branch) ; \
+ tag=v$ver ; \
+ git add -u ; \
+ git commit --amend -m $tag ; \
+ git tag --annotate --message $tag $tag ; \
+ )
+}
+
+function c4_release_delete()
+{
+ ( \
+ set -euxo pipefail ; \
+ ver=$(_c4_validate_ver $1) ; \
+ git tag -d v$ver ; \
+ git push origin :v$ver \
+ )
+}
+
+function c4_release_push()
+{
+ ( \
+ set -euxo pipefail ; \
+ ver=$(_c4_validate_ver $1) ; \
+ branch=$(_c4_validate_branch) ; \
+ tag=v$ver ; \
+ git push origin $branch ; \
+ git push --tags origin $tag \
+ )
+}
+
+function c4_release_force_push()
+{
+ ( \
+ set -euxo pipefail ; \
+ ver=$(_c4_validate_ver $1) ; \
+ branch=$(_c4_validate_branch) ; \
+ tag=v$ver ; \
+ git push -f origin $branch ; \
+ git push -f --tags origin $tag \
+ )
+}
+
+function _c4_validate_ver()
+{
+ ver=$1
+ if [ -z "$ver" ] ; then \
+ exit 1
+ fi
+ ver=$(echo $ver | sed "s:v\(.*\):\1:")
+ #sver=$(echo $ver | sed "s:\([0-9]*\.[0-9]*\..[0-9]*\).*:\1:")
+ if [ ! -f changelog/$ver.md ] ; then \
+ if [ -f changelog/current.md ] ; then
+ git mv changelog/current.md changelog/$ver.md
+ else
+ echo "ERROR: could not find changelog/$ver.md or changelog/current.md"
+ exit 1
+ fi
+ fi
+ echo $ver
+}
+
+function _c4_validate_branch()
+{
+ branch=$(git rev-parse --abbrev-ref HEAD)
+ if [ "$branch" != "master" ] ; then
+ echo "ERROR: release branch must be master"
+ exit 1
+ fi
+ echo $branch
+}
diff --git a/thirdparty/ryml/.github/reqs.sh b/thirdparty/ryml/.github/reqs.sh
new file mode 100644
index 000000000..b1747747c
--- /dev/null
+++ b/thirdparty/ryml/.github/reqs.sh
@@ -0,0 +1,315 @@
+#!/usr/bin/env bash
+
+set -x
+
+# input environment variables:
+# OS: the operating system
+# CXX_: the compiler version. eg, g++-9 or clang++-6.0
+# BT: the build type
+# VG: whether to install valgrind
+# ARM: whether to arm cross-compiler and emulator
+# GITHUB_WORKFLOW: when run from github
+# API: whether to install swig
+# CMANY: whether to install cmany
+
+
+
+#-------------------------------------------------------------------------------
+
+function c4_install_test_requirements()
+{
+ os=$1
+ case "$os" in
+ ubuntu*)
+ c4_install_test_requirements_ubuntu
+ return 0
+ ;;
+ macos*)
+ c4_install_test_requirements_macos
+ return 0
+ ;;
+ win*)
+ c4_install_test_requirements_windows
+ return 0
+ ;;
+ *)
+ return 0
+ ;;
+ esac
+}
+
+function c4_install_test_requirements_windows()
+{
+ if [ "$CMANY" == "ON" ] ; then
+ pip install cmany
+ fi
+ if [ "$API" == "ON" ] ; then
+ choco install swig
+ which swig
+ fi
+ # ensure chocolatey does not override cmake's cpack
+ which cpack
+ choco_cpack="/c/ProgramData/Chocolatey/bin/cpack.exe"
+ if [ -f $choco_cpack ] ; then
+ newname=$(echo $choco_cpack | sed 's:cpack:choco-cpack:')
+ mv -vf $choco_cpack $newname
+ fi
+ which cpack
+}
+
+function c4_install_test_requirements_macos()
+{
+ if [ "$CMANY" == "ON" ] ; then
+ sudo pip3 install cmany
+ fi
+}
+
+function c4_install_test_requirements_ubuntu()
+{
+ UBUNTU_RELEASE=$(lsb_release -rs)
+ UBUNTU_RELEASE_NAME=$(lsb_release -cs)
+ APT_PKG="" # all
+ PIP_PKG=""
+ c4_gather_test_requirements_ubuntu
+ echo "apt packages: $APT_PKG"
+ echo "pip packages: $PIP_PKG"
+ c4_install_test_requirements_ubuntu_impl
+ echo 'INSTALL COMPLETE!'
+}
+
+
+function c4_install_all_possible_requirements_ubuntu()
+{
+ export CXX_=all
+ export BT=Coverage
+ APT_PKG="" # all
+ PIP_PKG=""
+ sudo dpkg --add-architecture i386
+ c4_gather_test_requirements_ubuntu
+ _c4_add_arm_compilers
+ echo "apt packages: $APT_PKG"
+ echo "pip packages: $PIP_PKG"
+ c4_install_test_requirements_ubuntu_impl
+ echo 'INSTALL COMPLETE!'
+}
+
+
+function c4_gather_test_requirements_ubuntu()
+{
+ if [ "$GITHUB_WORKFLOW" != "" ] ; then
+ sudo dpkg --add-architecture i386
+ else
+ _add_apt build-essential
+ _add_apt cmake
+ fi
+
+ _add_apt linux-libc-dev:i386
+ _add_apt libc6:i386
+ _add_apt libc6-dev:i386
+ _add_apt libc6-dbg:i386
+
+ _c4_gather_compilers "$CXX_"
+
+ _add_apt python3-setuptools
+ _add_apt python3-pip
+
+ #_add_apt iwyu
+ #_add_apt cppcheck
+ #_add_pip cpplint
+ # oclint?
+ if [ "$VG" == "ON" ] ; then
+ _add_apt valgrind
+ fi
+
+ if [ "$BT" == "Coverage" ]; then
+ _add_apt lcov
+ _add_apt libffi-dev
+ _add_apt libssl-dev
+ _add_pip requests[security]
+ _add_pip pyopenssl
+ _add_pip ndg-httpsclient
+ _add_pip pyasn1
+ _add_pip cpp-coveralls
+ fi
+
+ if [ "$CMANY" != "" ] ; then
+ _add_pip cmany
+ fi
+
+ case "$CXX_" in
+ arm*)
+ _c4_add_arm_compilers
+ ;;
+ esac
+}
+
+
+function c4_install_test_requirements_ubuntu_impl()
+{
+ wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key 2>/dev/null | sudo apt-key add -
+ wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | sudo apt-key add -
+ sudo -E apt-add-repository --yes "deb https://apt.kitware.com/ubuntu/ $UBUNTU_RELEASE_NAME main"
+ sudo -E add-apt-repository --yes ppa:ubuntu-toolchain-r/test
+
+ if [ "$APT_PKG" != "" ] ; then
+ #sudo -E apt-get clean
+ sudo -E apt-get update
+ sudo -E apt-get install -y --force-yes $APT_PKG
+ fi
+
+ if [ "$PIP_PKG" != "" ]; then
+ sudo pip3 install $PIP_PKG
+ fi
+}
+
+
+#-------------------------------------------------------------------------------
+
+function _c4_add_arm_compilers()
+{
+ # this is going to be deprecated:
+ # https://askubuntu.com/questions/1243252/how-to-install-arm-none-eabi-gdb-on-ubuntu-20-04-lts-focal-fossa
+ sudo -E add-apt-repository --yes ppa:team-gcc-arm-embedded/ppa
+
+ _add_apt gcc-arm-embedded
+ _add_apt g++-arm-linux-gnueabihf
+ _add_apt g++-multilib-arm-linux-gnueabihf
+ _add_apt qemu
+}
+
+
+function _c4_gather_compilers()
+{
+ cxx=$1
+ case $cxx in
+ g++-12 ) _c4_addgcc 12 ;;
+ g++-11 ) _c4_addgcc 11 ;;
+ g++-10 ) _c4_addgcc 10 ;;
+ g++-9 ) _c4_addgcc 9 ;;
+ g++-8 ) _c4_addgcc 8 ;;
+ g++-7 ) _c4_addgcc 7 ;;
+ g++-6 ) _c4_addgcc 6 ;;
+ g++-5 ) _c4_addgcc 5 ;;
+ #g++-4.9 ) _c4_addgcc 4.9 ;; # https://askubuntu.com/questions/1036108/install-gcc-4-9-at-ubuntu-18-04
+ g++-4.8 ) _c4_addgcc 4.8 ;;
+ clang++-14 ) _c4_addclang 14 ;;
+ clang++-13 ) _c4_addclang 13 ;;
+ clang++-12 ) _c4_addclang 12 ;;
+ clang++-11 ) _c4_addclang 11 ;;
+ clang++-10 ) _c4_addclang 10 ;;
+ clang++-9 ) _c4_addclang 9 ;;
+ clang++-8 ) _c4_addclang 8 ;;
+ clang++-7 ) _c4_addclang 7 ;;
+ clang++-6.0) _c4_addclang 6.0 ;;
+ clang++-5.0) _c4_addclang 5.0 ;;
+ clang++-4.0) _c4_addclang 4.0 ;;
+ clang++-3.9) _c4_addclang 3.9 ;;
+ all)
+ all="g++-12 g++-11 g++-10 g++-9 g++-8 g++-7 g++-6 g++-5 clang++-14 clang++-13 clang++-12 clang++-11 clang++-10 clang++-9 clang++-8 clang++-7 clang++-6.0 clang++-5.0 clang++-4.0 clang++-3.9"
+ echo "installing all compilers: $all"
+ for cxx in $all ; do
+ _c4_gather_compilers $cxx
+ done
+ ;;
+ "")
+ # use default compiler
+ ;;
+ arm*)
+ ;;
+ *)
+ echo "unknown compiler: $cxx"
+ exit 1
+ ;;
+ esac
+}
+
+# add a gcc compiler
+function _c4_addgcc()
+{
+ gccversion=$1
+ case $gccversion in
+ 5 )
+ _add_apt gcc-5 "deb http://dk.archive.ubuntu.com/ubuntu/ xenial main"
+ _add_apt gcc-5 "deb http://dk.archive.ubuntu.com/ubuntu/ xenial universe"
+ ;;
+ *)
+ ;;
+ esac
+ _add_apt g++-$gccversion
+ _add_apt g++-$gccversion-multilib
+ _add_apt libstdc++-$gccversion-dev
+ _add_apt lib32stdc++-$gccversion-dev
+}
+
+# add a clang compiler
+function _c4_addclang()
+{
+ clversion=$1
+ case $clversion in
+ # in 18.04, clang9 and later require PPAs
+ 9 | 10 | 11 | 12 | 13 | 14)
+ _add_apt clang-$clversion "deb http://apt.llvm.org/$UBUNTU_RELEASE_NAME/ llvm-toolchain-$UBUNTU_RELEASE_NAME-$clversion main"
+ # libstdc++ is required
+ #_c4_addgcc 12
+ _c4_addgcc 11
+ _c4_addgcc 10
+ _c4_addgcc 9
+ ;;
+ "")
+ _add_apt clang
+ ;;
+ *)
+ _add_apt clang-$clversion
+ ;;
+ esac
+ _add_apt g++-multilib # this is required for 32 bit https://askubuntu.com/questions/1057341/unable-to-find-stl-headers-in-ubuntu-18-04
+ _add_apt clang-tidy-$clversion
+}
+
+# add libc++
+function _c4_addlibcxx()
+{
+ _add_apt clang
+ _add_apt libc++1
+ _add_apt libc++abi-dev
+ _add_apt libc++-dev
+ #_add_apt libc++1:i386
+ #_add_apt libc++abi-dev:i386
+ #_add_apt libc++-dev:i386
+}
+
+
+#-------------------------------------------------------------------------------
+
+# add a pip package to the list
+function _add_pip()
+{
+ pkgs=$*
+ PIP_PKG="$PIP_PKG $pkgs"
+ echo "adding to pip packages: $pkgs"
+}
+
+# add a debian package to the list
+function _add_apt()
+{
+ pkgs=$1
+ sourceslist=$2
+ APT_PKG="$APT_PKG $pkgs"
+ echo "adding to apt packages: $pkgs"
+ _add_src "$sourceslist" "# for packages: $pkgs"
+}
+
+# add an apt source
+function _add_src()
+{
+ sourceslist=$1
+ comment=$2
+ if [ ! -z "$sourceslist" ] ; then
+ echo "adding apt source: $sourceslist"
+ sudo bash -c "cat >> /etc/apt/sources.list <<EOF
+$comment
+$sourceslist
+EOF"
+ #cat /etc/apt/sources.list
+ fi
+}
diff --git a/thirdparty/ryml/.github/setenv.sh b/thirdparty/ryml/.github/setenv.sh
new file mode 100644
index 000000000..611a3c0f0
--- /dev/null
+++ b/thirdparty/ryml/.github/setenv.sh
@@ -0,0 +1,434 @@
+#!/usr/bin/env bash
+
+set -e
+set -x
+
+PROJ_DIR=$(pwd)
+
+function c4_show_info()
+{
+ set +x
+ env | sort
+ echo "PROJ_DIR=$PROJ_DIR"
+ echo "PROJ_PFX_TARGET=$PROJ_PFX_TARGET"
+ echo "PROJ_PFX_CMAKE=$PROJ_PFX_CMAKE"
+ echo "CMAKE_FLAGS=$CMAKE_FLAGS"
+ echo "NUM_JOBS_BUILD=$NUM_JOBS_BUILD"
+ echo "GITHUB_WORKSPACE=$GITHUB_WORKSPACE"
+ pwd
+ ls -lFhp
+ echo "BITLINKS=$BITLINKS"
+ for bl in shared64 static64 shared32 static32 ; do
+ if _c4skipbitlink $bl ; then
+ echo "skip $bl"
+ else
+ echo "exec $bl"
+ fi
+ done
+ echo "CXX_=$CXX_"
+ echo "BT=$BT"
+ echo "LINT=$LINT"
+ echo "SAN=$SAN"
+ echo "SAN_ONLY=$SAN"
+ echo "VG=$VG"
+ echo "BM=$BM"
+ echo "STD=$STD"
+ echo "ARM=$ARM"
+ echo "LIBCXX=$LIBCXX"
+ echo "VERBOSE_MAKEFILES=$VERBOSE_MAKEFILES"
+ which cmake
+ cmake --version
+ case "$CXX_" in
+ xcode)
+ # https://gist.github.com/nlutsenko/ee245fbd239087d22137
+ echo "number of cores=$(sysctl -n hw.ncpu)"
+ #defaults read com.apple.dt.xcodebuild | grep -i Number | grep -i Build
+ #defaults read com.apple.dt.Xcode | grep -i Number | grep -i Tasks
+ ;;
+ gcc*|g++*|*clang*)
+ echo "number of cores=$(nproc)"
+ $CXX_ --version
+ ;;
+ *)
+ ;;
+ esac
+ set -x
+ git branch
+ git rev-parse HEAD
+ git tag || echo
+ git log -1 --format='%H'
+}
+
+function _c4bits()
+{
+ case "$1" in
+ shared64|static64|arm64) echo 64 ;;
+ shared32|static32|arm32|arm) echo 32 ;;
+ *) exit 1 ;;
+ esac
+}
+
+function _c4linktype()
+{
+ case "$1" in
+ shared64|shared32) echo shared ;;
+ static64|static32) echo static ;;
+ *) exit 1 ;;
+ esac
+}
+
+function _c4skipbitlink()
+{
+ bitlink___=$1
+ if [ -z "$BITLINKS" ] ; then
+ return 1 # return nonzero as failure, meaning DO NOT SKIP
+ fi
+ for bl___ in $BITLINKS ; do
+ if [ "${bl___}" == "${bitlink___}" ] ; then
+ return 1 # return nonzero as failure, meaning DO NOT SKIP
+ fi
+ done
+ return 0 # return nonzero as success, meaning DO SKIP
+}
+
+function c4_build_test()
+{
+ c4_build_target $* test-build
+}
+
+function c4_run_test()
+{
+ c4_run_target $* test
+}
+
+# runs in parallel
+function c4_build_target()
+{
+ if _c4skipbitlink "$1" ; then return 0 ; fi
+ id=$1
+ target=$2
+ if [ ! -z "$target" ] ; then
+ target="--target $target"
+ fi
+ build_dir=`pwd`/build/$id
+ export CTEST_OUTPUT_ON_FAILURE=1
+ # watchout: the `--parallel` flag to `cmake --build` is broken:
+ # https://discourse.cmake.org/t/parallel-does-not-really-enable-parallel-compiles-with-msbuild/964/10
+ # https://gitlab.kitware.com/cmake/cmake/-/issues/20564
+ cmake --build $build_dir --config $BT $target -- $(_c4_generator_build_flags) $(_c4_parallel_build_flags)
+}
+
+# does not run in parallel
+function c4_run_target()
+{
+ if _c4skipbitlink "$1" ; then return 0 ; fi
+ id=$1
+ target=$2
+ build_dir=`pwd`/build/$id
+ export CTEST_OUTPUT_ON_FAILURE=1
+ cmake --build $build_dir --config $BT --target $target -- $(_c4_generator_build_flags)
+}
+
+function c4_package()
+{
+ if _c4skipbitlink "$1" ; then return 0 ; fi
+ id=$1
+ generator=$2
+ build_dir=`pwd`/build/$id
+ if [ -z "$generator" ] ; then
+ c4_run_target $id package
+ else
+ ( cd $build_dir ; cpack -G $generator )
+ fi
+}
+
+function c4_submit_coverage()
+{
+ if [ "$BT" != "Coverage" ] ; then
+ echo "build type is \"$BT\": no coverage to submit"
+ return 0
+ fi
+ if _c4skipbitlink "$1" ; then return 0 ; fi
+ id=$1
+ coverage_service=$2
+ build_dir=`pwd`/build/$id
+ echo "Submitting coverage data: $build_dir --> $coverage_service"
+ cmake --build $build_dir --config $BT --target ${PROJ_PFX_TARGET}coverage-submit-$coverage_service
+}
+
+# WIP
+function c4_run_static_analysis()
+{
+ if _c4skipbitlink "$1" ; then return 0 ; fi
+ id=$1
+ linktype=$(_c4linktype $id)
+ build_dir=`pwd`/build/$id
+ # https://blog.kitware.com/static-checks-with-cmake-cdash-iwyu-clang-tidy-lwyu-cpplint-and-cppcheck/
+ pushd $PROJ_DIR
+}
+
+function c4_cfg_test()
+{
+ if _c4skipbitlink "$1" ; then return 0 ; fi
+ id=$1
+ #
+ build_dir=`pwd`/build/$id
+ install_dir=`pwd`/install/$id
+ mkdir -p $build_dir
+ mkdir -p $install_dir
+ #
+ if [ "$TOOLCHAIN" != "" ] ; then
+ toolchain_file=`pwd`/$TOOLCHAIN
+ if [ ! -f "$toolchain_file" ] ; then
+ echo "ERROR: toolchain not found: $toolchain_file"
+ exit 1
+ fi
+ _addcmkflags -DCMAKE_TOOLCHAIN_FILE=$toolchain_file
+ else
+ bits=$(_c4bits $id)
+ linktype=$(_c4linktype $id)
+ case "$linktype" in
+ static) _addcmkflags -DBUILD_SHARED_LIBS=OFF ;;
+ shared) _addcmkflags -DBUILD_SHARED_LIBS=ON ;;
+ *)
+ echo "ERROR: unknown linktype: $linktype"
+ exit 1
+ ;;
+ esac
+ fi
+ if [ "$STD" != "" ] ; then
+ _addcmkflags -DC4_CXX_STANDARD=$STD
+ _addprojflags CXX_STANDARD=$STD
+ fi
+ if [ "$LIBCXX" != "" ] ; then
+ _addprojflags USE_LIBCXX=$LIBCXX
+ fi
+ #
+ if [ "$DEV" != "OFF" ] ; then
+ _addprojflags DEV=ON
+ fi
+ case "$LINT" in
+ all ) _addprojflags LINT=ON LINT_TESTS=ON LINT_CLANG_TIDY=ON LINT_PVS_STUDIO=ON ;;
+ clang-tidy) _addprojflags LINT=ON LINT_TESTS=ON LINT_CLANG_TIDY=ON LINT_PVS_STUDIO=OFF ;;
+ pvs-studio) _addprojflags LINT=ON LINT_TESTS=ON LINT_CLANG_TIDY=OFF LINT_PVS_STUDIO=ON ;;
+ * ) _addprojflags LINT=OFF ;;
+ esac
+ case "$SAN" in
+ ALL) _addprojflags SANITIZE=ON ;;
+ A ) _addprojflags SANITIZE=ON ASAN=ON TSAN=OFF MSAN=OFF UBSAN=OFF ;;
+ T ) _addprojflags SANITIZE=ON ASAN=OFF TSAN=ON MSAN=OFF UBSAN=OFF ;;
+ M ) _addprojflags SANITIZE=ON ASAN=OFF TSAN=OFF MSAN=ON UBSAN=OFF ;;
+ UB ) _addprojflags SANITIZE=ON ASAN=OFF TSAN=OFF MSAN=OFF UBSAN=ON ;;
+ * ) _addprojflags SANITIZE=OFF ;;
+ esac
+ case "$SAN_ONLY" in
+ ON) _addprojflags SANITIZE_ONLY=ON ;;
+ * ) _addprojflags SANITIZE_ONLY=OFF ;;
+ esac
+ case "$VG" in
+ ON) _addprojflags VALGRIND=ON VALGRIND_SGCHECK=OFF ;; # FIXME SGCHECK should be ON
+ * ) _addprojflags VALGRIND=OFF VALGRIND_SGCHECK=OFF ;;
+ esac
+ case "$BM" in
+ ON) _addprojflags BUILD_BENCHMARKS=ON ;;
+ * ) _addprojflags BUILD_BENCHMARKS=OFF ;;
+ esac
+ if [ "$BT" == "Coverage" ] ; then
+ # the coverage repo tokens can be set in the travis environment:
+ # export CODECOV_TOKEN=.......
+ # export COVERALLS_REPO_TOKEN=.......
+ _addprojflags COVERAGE_CODECOV=ON COVERAGE_CODECOV_SILENT=ON
+ _addprojflags COVERAGE_COVERALLS=ON COVERAGE_COVERALLS_SILENT=OFF
+ fi
+ if [ ! -z "$VERBOSE_MAKEFILES" ] ; then
+ _addcmkflags -DCMAKE_VERBOSE_MAKEFILES=$VERBOSE_MAKEFILES
+ fi
+ _addcmkflags -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
+ if [ ! -z "$CMAKE_FLAGS" ] ; then
+ _addcmkflags $CMAKE_FLAGS
+ fi
+
+ echo "building with additional cmake flags: $CMFLAGS"
+
+ export C4_EXTERN_DIR=`pwd`/build/extern
+ mkdir -p $C4_EXTERN_DIR
+
+ cmake --version
+ pwd
+
+ #
+ # bash quote handling is a fiasco, and I could not find a way of storing
+ # quoted strings in variables and then expand the variables with correct quotes
+ # so we have to do this precious jewell of chicanery:
+ case "$CXX_" in
+ vs2022)
+ g='Visual Studio 17 2022'
+ case "$bits" in
+ 64) a=x64 ;;
+ 32) a=Win32 ;;
+ esac
+ cmake -S $PROJ_DIR -B $build_dir -DCMAKE_INSTALL_PREFIX="$install_dir" \
+ -DCMAKE_BUILD_TYPE=$BT -G "$g" -A $a $CMFLAGS
+ ;;
+ vs2019)
+ g='Visual Studio 16 2019'
+ case "$bits" in
+ 64) a=x64 ;;
+ 32) a=Win32 ;;
+ esac
+ cmake -S $PROJ_DIR -B $build_dir -DCMAKE_INSTALL_PREFIX="$install_dir" \
+ -DCMAKE_BUILD_TYPE=$BT -G "$g" -A $a $CMFLAGS
+ ;;
+ vs2017)
+ case "$bits" in
+ 64) g="Visual Studio 15 2017 Win64" ;;
+ 32) g="Visual Studio 15 2017" ;;
+ esac
+ cmake -S $PROJ_DIR -B $build_dir -DCMAKE_INSTALL_PREFIX="$install_dir" \
+ -DCMAKE_BUILD_TYPE=$BT -G "$g" $CMFLAGS
+ ;;
+ xcode)
+ g=Xcode
+ case "$bits" in
+ 64) a="x86_64" ;;
+ 32) a="i386"
+ exit 1 # i386 is deprecated in xcode
+ ;;
+ esac
+ cmake -S $PROJ_DIR -B $build_dir -DCMAKE_INSTALL_PREFIX="$install_dir" \
+ -DCMAKE_BUILD_TYPE=$BT -G "$g" -DCMAKE_OSX_ARCHITECTURES=$a $CMFLAGS
+ ;;
+ arm*|"") # make sure arm* comes before *g++ or *gcc*
+ cmake -S $PROJ_DIR -B $build_dir -DCMAKE_INSTALL_PREFIX="$install_dir" \
+ -DCMAKE_BUILD_TYPE=$BT $CMFLAGS
+ ;;
+ *mingw*)
+ export CC_=$(echo "$CXX_" | sed 's:clang++:clang:g' | sed 's:g++:gcc:g')
+ cmake -S $PROJ_DIR -B $build_dir -DCMAKE_INSTALL_PREFIX="$install_dir" \
+ -G "MinGW Makefiles" \
+ -DCMAKE_BUILD_TYPE=$BT $CMFLAGS \
+ -DCMAKE_C_COMPILER=$CC_ -DCMAKE_CXX_COMPILER=$CXX_ \
+ -DCMAKE_C_FLAGS="-m$bits" -DCMAKE_CXX_FLAGS="-m$bits"
+ cmake --build $build_dir --target help | sed 1d | sort
+ ;;
+ *g++*|*gcc*|*clang*)
+ export CC_=$(echo "$CXX_" | sed 's:clang++:clang:g' | sed 's:g++:gcc:g')
+ _c4_choose_clang_tidy $CXX_
+ cmake -S $PROJ_DIR -B $build_dir -DCMAKE_INSTALL_PREFIX="$install_dir" \
+ -DCMAKE_BUILD_TYPE=$BT $CMFLAGS \
+ -DCMAKE_C_COMPILER=$CC_ -DCMAKE_CXX_COMPILER=$CXX_ \
+ -DCMAKE_C_FLAGS="-m$bits" -DCMAKE_CXX_FLAGS="-m$bits"
+ cmake --build $build_dir --target help | sed 1d | sort
+ ;;
+ em++)
+ emcmake cmake -S $PROJ_DIR -B $build_dir -DCMAKE_INSTALL_PREFIX="$install_dir" \
+ -DCMAKE_BUILD_TYPE=$BT $CMFLAGS \
+ -DCMAKE_CXX_FLAGS="-s DISABLE_EXCEPTION_CATCHING=0" \
+ -DRYML_TEST_TOOLS=OFF
+ ;;
+ *)
+ echo "unknown compiler"
+ exit 1
+ ;;
+ esac
+}
+
+function _c4_choose_clang_tidy()
+{
+ cxx=$1
+ # only for clang compilers.
+ case $cxx in
+ clang*)
+ # try with version first
+ clang_tidy_ver=$(echo $cxx | sed "s:++:-tidy:")
+ clang_tidy=$(echo $cxx | sed "s:++.*:-tidy:")
+ for n in $clang_tidy_ver $clang_tidy ; do
+ exe=$(which $n)
+ echo "searching for $n: $exe"
+ if [ -z "$exe" ] ; then
+ echo "could not find $clang_tidy"
+ else
+ _addcmkflags "-DCLANG_TIDY=$exe"
+ return 0
+ fi
+ done
+ echo "error: could not find clang-tidy for $cxx"
+ exit 1
+ ;;
+ esac
+}
+
+# add cmake flags without project prefix
+function _addcmkflags()
+{
+ for f in $* ; do
+ CMFLAGS="$CMFLAGS ${f}"
+ done
+}
+
+# add cmake flags with project prefix
+function _addprojflags()
+{
+ for f in $* ; do
+ CMFLAGS="$CMFLAGS -D${PROJ_PFX_CMAKE}${f}"
+ done
+}
+
+function _c4_parallel_build_flags()
+{
+ case "$CXX_" in
+ vs2022|vs2019|vs2017|vs2015)
+ # https://docs.microsoft.com/en-us/visualstudio/msbuild/msbuild-command-line-reference?view=vs-2019
+ # https://stackoverflow.com/questions/2619198/how-to-get-number-of-cores-in-win32
+ if [ -z "$NUM_JOBS_BUILD" ] ; then
+ echo "/maxcpucount:$NUMBER_OF_PROCESSORS"
+ else
+ echo "/maxcpucount:$NUM_JOBS_BUILD"
+ fi
+ ;;
+ xcode)
+ # https://stackoverflow.com/questions/5417835/how-to-modify-the-number-of-parallel-compilation-with-xcode
+ # https://gist.github.com/nlutsenko/ee245fbd239087d22137
+ if [ -z "$NUM_JOBS_BUILD" ] ; then
+ echo "-IDEBuildOperationMaxNumberOfConcurrentCompileTasks=$(sysctl -n hw.ncpu)"
+ else
+ echo "-IDEBuildOperationMaxNumberOfConcurrentCompileTasks=$NUM_JOBS_BUILD"
+ fi
+ ;;
+ *g++*|*gcc*|*clang*|em++)
+ if [ -z "$NUM_JOBS_BUILD" ] ; then
+ echo "-j $(nproc)"
+ else
+ echo "-j $NUM_JOBS_BUILD"
+ fi
+ ;;
+ "") # allow empty compiler
+ ;;
+ *)
+ echo "unknown compiler"
+ exit 1
+ ;;
+ esac
+}
+
+function _c4_generator_build_flags()
+{
+ case "$CXX_" in
+ vs2022|vs2019|vs2017|vs2015)
+ ;;
+ xcode)
+ # WTF???
+ # https://github.com/biojppm/rapidyaml/pull/97/checks?check_run_id=1504677928#step:7:964
+ # https://stackoverflow.com/questions/51153525/xcode-10-unable-to-attach-db-error
+ echo "-UseModernBuildSystem=NO"
+ ;;
+ *g++*|*gcc*|*clang*|em++)
+ ;;
+ "") # allow empty compiler
+ ;;
+ *)
+ echo "unknown compiler"
+ exit 1
+ ;;
+ esac
+}
diff --git a/thirdparty/ryml/.github/workflows/benchmarks.yml b/thirdparty/ryml/.github/workflows/benchmarks.yml
new file mode 100644
index 000000000..61654643f
--- /dev/null
+++ b/thirdparty/ryml/.github/workflows/benchmarks.yml
@@ -0,0 +1,147 @@
+name: benchmarks
+
+defaults:
+ run:
+ # Use a bash shell so we can use the same syntax for environment variable
+ # access regardless of the host operating system
+ shell: bash -e -x {0}
+
+on:
+ # https://github.community/t/how-to-trigger-an-action-on-push-or-pull-request-but-not-both/16662
+ workflow_dispatch:
+ 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: # 4
+
+
+jobs:
+
+ gettag:
+ runs-on: ubuntu-latest
+ steps:
+ # use fetch-depth to ensure all tags are fetched
+ - {name: checkout, uses: actions/checkout@v3, with: {submodules: recursive, fetch-depth: 0}}
+ - name: Variables (from tag)
+ if: contains(github.ref, 'tags/v')
+ run: |
+ # https://github.community/t/how-to-get-just-the-tag-name/16241/11
+ SRC_TAG=${GITHUB_REF#refs/tags/}
+ SRC_VERSION=${GITHUB_REF#refs/tags/v}
+ cat <<EOF > vars.sh
+ export SRC_TAG=$SRC_TAG
+ export SRC_VERSION=$SRC_VERSION
+ EOF
+ - name: Variables (from commit, no tag)
+ if: ${{ !contains(github.ref, 'tags/v') }}
+ run: |
+ set -x
+ branch_name=${GITHUB_REF#refs/heads/}
+ # builds triggered from PRs have the branch_name like this: refs/pull/150/merge
+ # so filter to eg pr0150_merge
+ branch_name=`echo $branch_name | sed "s:refs/pull/\([0-9]*\)/\(.*\):pr0\1_\2:"`
+ # sanitize the branch name; eg merge/foo-bar -> merge_foo_bar
+ branch_name=`echo $branch_name | sed 's:[/.-]:_:g'`
+ git config --global --add safe.directory $(pwd)
+ SRC_TAG=$(git describe || git rev-parse --short HEAD) # eg v0.2.0-110-gda837e0
+ SRC_VERSION="${branch_name}-${SRC_TAG}"
+ cat <<EOF > vars.sh
+ export SRC_TAG=$SRC_TAG
+ export SRC_VERSION=$SRC_VERSION
+ EOF
+ - name: Verify vars.sh
+ run: cat vars.sh ; source vars.sh ; echo $SRC_TAG ; echo $SRC_VERSION
+ - name: Save vars.sh
+ uses: actions/upload-artifact@v3
+ with: {name: vars.sh, path: ./vars.sh}
+
+ benchmarks:
+ name: bm/c++${{matrix.std}}/${{matrix.cxx}}/${{matrix.bt}}
+ needs: gettag
+ if: |
+ (!contains(github.event.head_commit.message, 'skip all')) ||
+ (!contains(github.event.head_commit.message, 'skip benchmarks')) ||
+ contains(github.event.head_commit.message, 'only benchmarks')
+ continue-on-error: true
+ runs-on: ${{matrix.os}}
+ strategy:
+ fail-fast: false
+ matrix:
+ include:
+ - {std: 11, cxx: g++-10, bt: Release, os: ubuntu-20.04, bitlinks: static64 static32}
+ - {std: 17, cxx: g++-10, bt: Release, os: ubuntu-20.04, bitlinks: static64 static32}
+ - {std: 20, cxx: g++-10, bt: Release, os: ubuntu-20.04, bitlinks: static64 static32}
+ #
+ - {std: 17, cxx: vs2019, bt: Release, os: windows-2019, bitlinks: static64 static32}
+ - {std: 20, cxx: vs2019, bt: Release, os: windows-2019, bitlinks: static64 static32}
+ - {std: 17, cxx: vs2022, bt: Release, os: windows-2022, bitlinks: static64 static32}
+ - {std: 20, cxx: vs2022, bt: Release, os: windows-2022, bitlinks: static64 static32}
+ #
+ - {std: 17, cxx: xcode, xcver: 13, bt: Release, os: macos-11, bitlinks: static64}
+ env: {BM: ON, STD: "${{matrix.std}}", CXX_: "${{matrix.cxx}}", BT: "${{matrix.bt}}", BITLINKS: "${{matrix.bitlinks}}", VG: "${{matrix.vg}}", SAN: "${{matrix.san}}", LINT: "${{matrix.lint}}", OS: "${{matrix.os}}"}
+ steps:
+ # use fetch-depth to ensure all tags are fetched
+ - {name: checkout, uses: actions/checkout@v3, with: {submodules: recursive, fetch-depth: 0}}
+ - {name: install requirements, run: source .github/reqs.sh && c4_install_test_requirements $OS}
+ - name: Download vars.sh
+ uses: actions/download-artifact@v3
+ with: {name: vars.sh, path: ./}
+ - {name: show info, run: source .github/setenv.sh && c4_show_info}
+ - name: Install python 3.10 for plotting
+ uses: actions/setup-python@v4
+ with: { python-version: '3.10' }
+ - name: install benchmark plotting dependencies
+ run: |
+ which python
+ which pip
+ python --version
+ pip --version
+ pip install -v -r ext/c4core/cmake/bm-xp/requirements.txt
+ python -c 'import munch ; print("ok!") ; exit(0)'
+ echo $?
+ - name: shared64-configure---------------------------------------------------
+ run: export CMAKE_FLAGS="-DPython_EXECUTABLE=$(which python)" && source .github/setenv.sh && c4_cfg_test shared64
+ - {name: shared64-build, run: source .github/setenv.sh && c4_build_target shared64 ryml-bm-build}
+ - {name: shared64-run, run: export NUM_JOBS_BUILD=1 && source .github/setenv.sh && c4_run_target shared64 ryml-bm-run}
+ - {name: shared64-plot, run: export NUM_JOBS_BUILD=1 && source .github/setenv.sh && c4_run_target shared64 ryml-bm-plot}
+ - name: static64-configure---------------------------------------------------
+ run: export CMAKE_FLAGS="-DPython_EXECUTABLE=$(which python)" && source .github/setenv.sh && c4_cfg_test static64
+ - {name: static64-build, run: source .github/setenv.sh && c4_build_target static64 ryml-bm-build}
+ - {name: static64-run, run: export NUM_JOBS_BUILD=1 && source .github/setenv.sh && c4_run_target static64 ryml-bm-run}
+ - {name: static64-plot, run: export NUM_JOBS_BUILD=1 && source .github/setenv.sh && c4_run_target static64 ryml-bm-plot}
+ - name: static32-configure---------------------------------------------------
+ run: export CMAKE_FLAGS="-DPython_EXECUTABLE=$(which python)" && source .github/setenv.sh && c4_cfg_test static32
+ - {name: static32-build, run: source .github/setenv.sh && c4_build_target static32 ryml-bm-build}
+ - {name: static32-run, run: export NUM_JOBS_BUILD=1 && source .github/setenv.sh && c4_run_target static32 ryml-bm-run}
+ - {name: static32-plot, run: export NUM_JOBS_BUILD=1 && source .github/setenv.sh && c4_run_target static32 ryml-bm-plot}
+ - name: shared32-configure---------------------------------------------------
+ run: export CMAKE_FLAGS="-DPython_EXECUTABLE=$(which python)" && source .github/setenv.sh && c4_cfg_test shared32
+ - {name: shared32-build, run: source .github/setenv.sh && c4_build_target shared32 ryml-bm-build}
+ - {name: shared32-run, run: export NUM_JOBS_BUILD=1 && source .github/setenv.sh && c4_run_target shared32 ryml-bm-run}
+ - {name: shared32-plot, run: export NUM_JOBS_BUILD=1 && source .github/setenv.sh && c4_run_target shared32 ryml-bm-plot}
+ - name: gather benchmark results
+ run: |
+ set -x
+ source vars.sh
+ echo SRC_TAG=$SRC_TAG
+ echo SRC_VERSION=$SRC_VERSION
+ desc=$SRC_TAG
+ for bl in ${{matrix.bitlinks}} ; do
+ dst=$(echo ryml-benchmark_results/$desc/x86_64/${{matrix.cxx}}-${{matrix.bt}}-c++${{matrix.std}}-$bl | sed 's:++-:xx:g' | sed 's:+:x:g')
+ mkdir -p $dst
+ find build -name bm-results
+ mv -vf build/$bl/bm/bm-results/* $dst/.
+ done
+ - name: upload benchmark result artifacts
+ uses: actions/upload-artifact@v3
+ with:
+ name: ryml-benchmark_results
+ path: ryml-benchmark_results/
diff --git a/thirdparty/ryml/.github/workflows/clang.yml b/thirdparty/ryml/.github/workflows/clang.yml
new file mode 100644
index 000000000..f0b7ad009
--- /dev/null
+++ b/thirdparty/ryml/.github/workflows/clang.yml
@@ -0,0 +1,262 @@
+name: clang
+
+defaults:
+ run:
+ # Use a bash shell so we can use the same syntax for environment variable
+ # access regardless of the host operating system
+ shell: bash -e -x {0}
+
+on:
+ # https://github.community/t/how-to-trigger-an-action-on-push-or-pull-request-but-not-both/16662
+ workflow_dispatch:
+ 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: # 4
+
+
+jobs:
+ clang_canary:
+ name: ${{matrix.cxx}}/canary/c++${{matrix.std}}/${{matrix.bt}}
+ if: |
+ (!contains(github.event.head_commit.message, 'skip all')) ||
+ (!contains(github.event.head_commit.message, 'skip clang')) ||
+ contains(github.event.head_commit.message, 'only clang')
+ continue-on-error: true
+ runs-on: ${{matrix.os}}
+ strategy:
+ fail-fast: false
+ matrix:
+ include:
+ - {std: 17, cxx: clang++-10 , bt: Debug , os: ubuntu-20.04, bitlinks: shared64 static32}
+ - {std: 17, cxx: clang++-10 , bt: Release, os: ubuntu-20.04, bitlinks: shared64 static32}
+ - {std: 20, cxx: clang++-10 , bt: Debug , os: ubuntu-20.04, bitlinks: shared64 static32}
+ - {std: 20, cxx: clang++-10 , bt: Release, os: ubuntu-20.04, bitlinks: shared64 static32}
+ - {std: 11, cxx: clang++-6.0, bt: Debug , os: ubuntu-20.04, bitlinks: shared64 static32}
+ - {std: 11, cxx: clang++-6.0, bt: Release, os: ubuntu-20.04, bitlinks: shared64 static32}
+ env: {STD: "${{matrix.std}}", CXX_: "${{matrix.cxx}}", BT: "${{matrix.bt}}", BITLINKS: "${{matrix.bitlinks}}",
+ CMAKE_FLAGS: "${{matrix.cmkflags}}",
+ VG: "${{matrix.vg}}", SAN: "${{matrix.san}}", LINT: "${{matrix.lint}}", OS: "${{matrix.os}}"}
+ steps:
+ - {name: checkout, uses: actions/checkout@v3, with: {submodules: recursive}}
+ - {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: shared64-configure---------------------------------------------------
+ run: source .github/setenv.sh && c4_cfg_test shared64
+ - {name: shared64-build, run: source .github/setenv.sh && c4_build_test shared64}
+ - {name: shared64-run, run: source .github/setenv.sh && c4_run_test shared64}
+ - {name: shared64-pack, run: source .github/setenv.sh && c4_package shared64}
+ - 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_run_test static64}
+ - {name: static64-pack, run: source .github/setenv.sh && c4_package static64}
+ - 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_run_test static32}
+ - {name: static32-pack, run: source .github/setenv.sh && c4_package static32}
+ - name: shared32-configure---------------------------------------------------
+ run: source .github/setenv.sh && c4_cfg_test shared32
+ - {name: shared32-build, run: source .github/setenv.sh && c4_build_test shared32}
+ - {name: shared32-run, run: source .github/setenv.sh && c4_run_test shared32}
+ - {name: shared32-pack, run: source .github/setenv.sh && c4_package shared32}
+
+ clang_canary_tabtokens:
+ name: tabtokens/${{matrix.cxx}}/canary/c++${{matrix.std}}/${{matrix.bt}}
+ if: |
+ (!contains(github.event.head_commit.message, 'skip all')) ||
+ (!contains(github.event.head_commit.message, 'skip clang')) ||
+ contains(github.event.head_commit.message, 'only clang')
+ continue-on-error: true
+ runs-on: ${{matrix.os}}
+ strategy:
+ fail-fast: false
+ matrix:
+ include:
+ - {std: 17, cxx: clang++-10 , bt: Debug , os: ubuntu-20.04, bitlinks: static64, cmkflags: "-DRYML_WITH_TAB_TOKENS=ON"}
+ - {std: 17, cxx: clang++-10 , bt: Release, os: ubuntu-20.04, bitlinks: static64, cmkflags: "-DRYML_WITH_TAB_TOKENS=ON"}
+ - {std: 20, cxx: clang++-10 , bt: Debug , os: ubuntu-20.04, bitlinks: static64, cmkflags: "-DRYML_WITH_TAB_TOKENS=ON"}
+ - {std: 20, cxx: clang++-10 , bt: Release, os: ubuntu-20.04, bitlinks: static64, cmkflags: "-DRYML_WITH_TAB_TOKENS=ON"}
+ - {std: 11, cxx: clang++-6.0, bt: Debug , os: ubuntu-20.04, bitlinks: static64, cmkflags: "-DRYML_WITH_TAB_TOKENS=ON"}
+ - {std: 11, cxx: clang++-6.0, bt: Release, os: ubuntu-20.04, bitlinks: static64, cmkflags: "-DRYML_WITH_TAB_TOKENS=ON"}
+ env: {STD: "${{matrix.std}}", CXX_: "${{matrix.cxx}}", BT: "${{matrix.bt}}", BITLINKS: "${{matrix.bitlinks}}",
+ CMAKE_FLAGS: "${{matrix.cmkflags}}",
+ VG: "${{matrix.vg}}", SAN: "${{matrix.san}}", LINT: "${{matrix.lint}}", OS: "${{matrix.os}}"}
+ steps:
+ - {name: checkout, uses: actions/checkout@v3, with: {submodules: recursive}}
+ - {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: shared64-configure---------------------------------------------------
+ run: source .github/setenv.sh && c4_cfg_test shared64
+ - {name: shared64-build, run: source .github/setenv.sh && c4_build_test shared64}
+ - {name: shared64-run, run: source .github/setenv.sh && c4_run_test shared64}
+ - {name: shared64-pack, run: source .github/setenv.sh && c4_package shared64}
+ - 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_run_test static64}
+ - {name: static64-pack, run: source .github/setenv.sh && c4_package static64}
+ - 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_run_test static32}
+ - {name: static32-pack, run: source .github/setenv.sh && c4_package static32}
+ - name: shared32-configure---------------------------------------------------
+ run: source .github/setenv.sh && c4_cfg_test shared32
+ - {name: shared32-build, run: source .github/setenv.sh && c4_build_test shared32}
+ - {name: shared32-run, run: source .github/setenv.sh && c4_run_test shared32}
+ - {name: shared32-pack, run: source .github/setenv.sh && c4_package shared32}
+
+ #----------------------------------------------------------------------------
+ clang_extended:
+ name: ${{matrix.cxx}}/extended/c++${{matrix.std}}/${{matrix.bt}}
+ needs: clang_canary
+ if: |
+ (!contains(github.event.head_commit.message, 'skip all')) ||
+ (!contains(github.event.head_commit.message, 'skip clang')) ||
+ contains(github.event.head_commit.message, 'only clang')
+ continue-on-error: true
+ runs-on: ${{matrix.os}}
+ strategy:
+ fail-fast: false
+ matrix:
+ include:
+ - {std: 11, cxx: clang++-10 , bt: Debug , vg: on, os: ubuntu-20.04}
+ - {std: 11, cxx: clang++-10 , bt: Release, vg: on, os: ubuntu-20.04}
+ env: {STD: "${{matrix.std}}", CXX_: "${{matrix.cxx}}", BT: "${{matrix.bt}}", BITLINKS: "${{matrix.bitlinks}}",
+ CMAKE_FLAGS: "${{matrix.cmkflags}}",
+ VG: "${{matrix.vg}}", SAN: "${{matrix.san}}", LINT: "${{matrix.lint}}", OS: "${{matrix.os}}"}
+ steps:
+ - {name: checkout, uses: actions/checkout@v3, with: {submodules: recursive}}
+ - {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: shared64-configure---------------------------------------------------
+ run: source .github/setenv.sh && c4_cfg_test shared64
+ - {name: shared64-build, run: source .github/setenv.sh && c4_build_test shared64}
+ - {name: shared64-run, run: source .github/setenv.sh && c4_run_test shared64}
+ - {name: shared64-pack, run: source .github/setenv.sh && c4_package shared64}
+ - 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_run_test static64}
+ - {name: static64-pack, run: source .github/setenv.sh && c4_package static64}
+ - 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_run_test static32}
+ - {name: static32-pack, run: source .github/setenv.sh && c4_package static32}
+ - name: shared32-configure---------------------------------------------------
+ run: source .github/setenv.sh && c4_cfg_test shared32
+ - {name: shared32-build, run: source .github/setenv.sh && c4_build_test shared32}
+ - {name: shared32-run, run: source .github/setenv.sh && c4_run_test shared32}
+ - {name: shared32-pack, run: source .github/setenv.sh && c4_package shared32}
+
+ #----------------------------------------------------------------------------
+ clang_sanitize:
+ name: ${{matrix.cxx}}/san/c++${{matrix.std}}/${{matrix.bt}}
+ needs: clang_canary
+ if: |
+ (!contains(github.event.head_commit.message, 'skip all')) ||
+ (!contains(github.event.head_commit.message, 'skip clang')) ||
+ contains(github.event.head_commit.message, 'only clang')
+ continue-on-error: true
+ runs-on: ${{matrix.os}}
+ strategy:
+ fail-fast: false
+ matrix:
+ include:
+ # these jobs take much longer, so run only one bitlink pair per job to profit from parallelism
+ - {std: 11, cxx: clang++-10, bt: Debug , vg: ON, san: ALL, bitlinks: shared64, os: ubuntu-20.04}
+ - {std: 11, cxx: clang++-10, bt: Debug , vg: ON, san: ALL, bitlinks: static64, os: ubuntu-20.04}
+ - {std: 11, cxx: clang++-10, bt: Debug , vg: ON, san: ALL, bitlinks: shared32, os: ubuntu-20.04}
+ - {std: 11, cxx: clang++-10, bt: Debug , vg: ON, san: ALL, bitlinks: static32, os: ubuntu-20.04}
+ - {std: 11, cxx: clang++-10, bt: Release, vg: ON, san: ALL, bitlinks: shared64, os: ubuntu-20.04}
+ - {std: 11, cxx: clang++-10, bt: Release, vg: ON, san: ALL, bitlinks: static64, os: ubuntu-20.04}
+ - {std: 11, cxx: clang++-10, bt: Release, vg: ON, san: ALL, bitlinks: shared32, os: ubuntu-20.04}
+ - {std: 11, cxx: clang++-10, bt: Release, vg: ON, san: ALL, bitlinks: static32, os: ubuntu-20.04}
+ - {std: 17, cxx: clang++-10, bt: Debug , vg: ON, san: ALL, bitlinks: shared64, os: ubuntu-20.04}
+ - {std: 17, cxx: clang++-10, bt: Debug , vg: ON, san: ALL, bitlinks: static64, os: ubuntu-20.04}
+ - {std: 17, cxx: clang++-10, bt: Debug , vg: ON, san: ALL, bitlinks: shared32, os: ubuntu-20.04}
+ - {std: 17, cxx: clang++-10, bt: Debug , vg: ON, san: ALL, bitlinks: static32, os: ubuntu-20.04}
+ - {std: 17, cxx: clang++-10, bt: Release, vg: ON, san: ALL, bitlinks: shared64, os: ubuntu-20.04}
+ - {std: 17, cxx: clang++-10, bt: Release, vg: ON, san: ALL, bitlinks: static64, os: ubuntu-20.04}
+ - {std: 17, cxx: clang++-10, bt: Release, vg: ON, san: ALL, bitlinks: shared32, os: ubuntu-20.04}
+ - {std: 17, cxx: clang++-10, bt: Release, vg: ON, san: ALL, bitlinks: static32, os: ubuntu-20.04}
+ - {std: 20, cxx: clang++-10, bt: Debug , vg: ON, san: ALL, bitlinks: shared64, os: ubuntu-20.04}
+ - {std: 20, cxx: clang++-10, bt: Debug , vg: ON, san: ALL, bitlinks: static64, os: ubuntu-20.04}
+ - {std: 20, cxx: clang++-10, bt: Debug , vg: ON, san: ALL, bitlinks: shared32, os: ubuntu-20.04}
+ - {std: 20, cxx: clang++-10, bt: Debug , vg: ON, san: ALL, bitlinks: static32, os: ubuntu-20.04}
+ - {std: 20, cxx: clang++-10, bt: Release, vg: ON, san: ALL, bitlinks: shared64, os: ubuntu-20.04}
+ - {std: 20, cxx: clang++-10, bt: Release, vg: ON, san: ALL, bitlinks: static64, os: ubuntu-20.04}
+ - {std: 20, cxx: clang++-10, bt: Release, vg: ON, san: ALL, bitlinks: shared32, os: ubuntu-20.04}
+ - {std: 20, cxx: clang++-10, bt: Release, vg: ON, san: ALL, bitlinks: static32, os: ubuntu-20.04}
+ 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}}"}
+ steps:
+ - {name: checkout, uses: actions/checkout@v3, with: {submodules: recursive}}
+ - {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: shared64-configure---------------------------------------------------
+ run: source .github/setenv.sh && c4_cfg_test shared64
+ - {name: shared64-build, run: source .github/setenv.sh && c4_build_test shared64}
+ - {name: shared64-run, run: source .github/setenv.sh && c4_run_test shared64}
+ - {name: shared64-pack, run: source .github/setenv.sh && c4_package shared64}
+ - 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_run_test static64}
+ - {name: static64-pack, run: source .github/setenv.sh && c4_package static64}
+ - 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_run_test static32}
+ - {name: static32-pack, run: source .github/setenv.sh && c4_package static32}
+ - name: shared32-configure---------------------------------------------------
+ run: source .github/setenv.sh && c4_cfg_test shared32
+ - {name: shared32-build, run: source .github/setenv.sh && c4_build_test shared32}
+ - {name: shared32-run, run: source .github/setenv.sh && c4_run_test shared32}
+ - {name: shared32-pack, run: source .github/setenv.sh && c4_package shared32}
+
+# #----------------------------------------------------------------------------
+# # https://blog.kitware.com/static-checks-with-cmake-cdash-iwyu-clang-tidy-lwyu-cpplint-and-cppcheck/
+# static_analysis:
+# if: |
+# (!contains(github.event.head_commit.message, 'skip all')) ||
+# (!contains(github.event.head_commit.message, 'skip clang')) ||
+# contains(github.event.head_commit.message, 'only clang')
+# continue-on-error: true
+# runs-on: ${{matrix.os}}
+# strategy:
+# fail-fast: false
+# matrix:
+# include:
+# # these jobs take much longer, so run only one bitlink pair per job to profit from parallelism
+# - {std: 11, cxx: clang++-10, bt: Debug , bitlinks: shared64, os: ubuntu-20.04}
+# - {std: 11, cxx: clang++-10, bt: Release, bitlinks: shared64, os: ubuntu-20.04}
+# - {std: 14, cxx: clang++-10, bt: Debug , bitlinks: shared64, os: ubuntu-20.04}
+# - {std: 14, cxx: clang++-10, bt: Release, bitlinks: shared64, os: ubuntu-20.04}
+# - {std: 17, cxx: clang++-10, bt: Debug , bitlinks: shared64, os: ubuntu-20.04}
+# - {std: 17, cxx: clang++-10, bt: Release, bitlinks: shared64, os: ubuntu-20.04}
+# - {std: 20, cxx: clang++-10, bt: Debug , bitlinks: shared64, os: ubuntu-20.04}
+# - {std: 20, cxx: clang++-10, bt: Release, bitlinks: shared64, os: ubuntu-20.04}
+# 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}}"}
+# steps:
+# - {name: checkout, uses: actions/checkout@v3, with: {submodules: recursive}}
+# - {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: shared64-configure---------------------------------------------------
+# run: source .github/setenv.sh && c4_cfg_test shared64
+# - {name: shared64-build, run: source .github/setenv.sh && c4_build_test shared64}
+# - {name: clang-tidy, run: cmake "-DCMAKE_CXX_CLANG_TIDY=/usr/bin/clang-tidy-3.9;-checks=*" ../path/to/source}
+# - {name: cppcheck, run: cmake "-DCMAKE_CXX_CPPCHECK=/usr/bin/cppcheck;--std=c++11" ../path/to/source}
+# - {name: cpplint, run: cmake "-DCMAKE_CXX_CPPLINT=/usr/local/bin/cpplint;--linelength=179" ..}
+# - {name: include-what-you-use, run: cmake "-DCMAKE_CXX_INCLUDE_WHAT_YOU_USE=/usr/bin/iwyu;--transitive_includes_only" ..}
+# - {name: link-what-you-use, run: cmake -DCMAKE_LINK_WHAT_YOU_USE=TRUE ..}
diff --git a/thirdparty/ryml/.github/workflows/clang_tidy.yml b/thirdparty/ryml/.github/workflows/clang_tidy.yml
new file mode 100644
index 000000000..5c9a7d872
--- /dev/null
+++ b/thirdparty/ryml/.github/workflows/clang_tidy.yml
@@ -0,0 +1,72 @@
+name: clang_tidy
+
+defaults:
+ run:
+ # Use a bash shell so we can use the same syntax for environment variable
+ # access regardless of the host operating system
+ shell: bash -e -x {0}
+
+on:
+ # https://github.community/t/how-to-trigger-an-action-on-push-or-pull-request-but-not-both/16662
+ workflow_dispatch:
+ 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: # 4
+
+
+jobs:
+ clang_tidy:
+ name: ${{matrix.cxx}}/tidy/c++${{matrix.std}}/${{matrix.bt}}
+ if: |
+ (!contains(github.event.head_commit.message, 'skip all')) ||
+ (!contains(github.event.head_commit.message, 'skip clang')) ||
+ contains(github.event.head_commit.message, 'only clang')
+ continue-on-error: false
+ runs-on: ${{matrix.os}}
+ strategy:
+ fail-fast: false
+ matrix:
+ include:
+ # clang tidy takes a long time, so don't do multiple bits/linktypes
+ - {std: 11, cxx: clang++-10, bt: Debug , lint: clang-tidy, bitlinks: shared64, os: ubuntu-20.04}
+ - {std: 11, cxx: clang++-10, bt: Debug , lint: clang-tidy, bitlinks: static64, os: ubuntu-20.04}
+ - {std: 11, cxx: clang++-10, bt: Debug , lint: clang-tidy, bitlinks: shared32, os: ubuntu-20.04}
+ - {std: 11, cxx: clang++-10, bt: Debug , lint: clang-tidy, bitlinks: static32, os: ubuntu-20.04}
+ - {std: 11, cxx: clang++-10, bt: ReleaseWithDebInfo, lint: clang-tidy, bitlinks: shared64, os: ubuntu-20.04}
+ - {std: 11, cxx: clang++-10, bt: ReleaseWithDebInfo, lint: clang-tidy, bitlinks: static64, os: ubuntu-20.04}
+ - {std: 11, cxx: clang++-10, bt: ReleaseWithDebInfo, lint: clang-tidy, bitlinks: shared32, os: ubuntu-20.04}
+ - {std: 11, cxx: clang++-10, bt: ReleaseWithDebInfo, lint: clang-tidy, bitlinks: static32, os: ubuntu-20.04}
+ 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}}"}
+ steps:
+ - {name: checkout, uses: actions/checkout@v3, with: {submodules: recursive}}
+ - {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: shared64-configure---------------------------------------------------
+ run: source .github/setenv.sh && c4_cfg_test shared64
+ - {name: shared64-build, run: source .github/setenv.sh && c4_build_test shared64}
+ - {name: shared64-run, run: source .github/setenv.sh && c4_run_test shared64}
+ - {name: shared64-pack, run: source .github/setenv.sh && c4_package shared64}
+ - 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_run_test static64}
+ - {name: static64-pack, run: source .github/setenv.sh && c4_package static64}
+ - 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_run_test static32}
+ - {name: static32-pack, run: source .github/setenv.sh && c4_package static32}
+ - name: shared32-configure---------------------------------------------------
+ run: source .github/setenv.sh && c4_cfg_test shared32
+ - {name: shared32-build, run: source .github/setenv.sh && c4_build_test shared32}
+ - {name: shared32-run, run: source .github/setenv.sh && c4_run_test shared32}
+ - {name: shared32-pack, run: source .github/setenv.sh && c4_package shared32}
diff --git a/thirdparty/ryml/.github/workflows/codeql.yml b/thirdparty/ryml/.github/workflows/codeql.yml
new file mode 100644
index 000000000..3ad8a5819
--- /dev/null
+++ b/thirdparty/ryml/.github/workflows/codeql.yml
@@ -0,0 +1,44 @@
+name: "CodeQL"
+
+on:
+ push:
+ branches: [ "master" ]
+ pull_request:
+ branches: [ "master" ]
+ schedule:
+ - cron: "41 14 * * 5"
+
+jobs:
+ analyze:
+ name: Analyze
+ runs-on: ubuntu-latest
+ permissions:
+ actions: read
+ contents: read
+ security-events: write
+
+ strategy:
+ fail-fast: false
+ matrix:
+ language: [ cpp ]
+
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v3
+ with:
+ submodules: recursive
+
+ - name: Initialize CodeQL
+ uses: github/codeql-action/init@v2
+ with:
+ languages: ${{ matrix.language }}
+ config-file: ./.github/codeql.yml
+ queries: +security-and-quality
+
+ - name: Autobuild
+ uses: github/codeql-action/autobuild@v2
+
+ - name: Perform CodeQL Analysis
+ uses: github/codeql-action/analyze@v2
+ with:
+ category: "/language:${{ matrix.language }}"
diff --git a/thirdparty/ryml/.github/workflows/coverage.yml b/thirdparty/ryml/.github/workflows/coverage.yml
new file mode 100644
index 000000000..52da02c56
--- /dev/null
+++ b/thirdparty/ryml/.github/workflows/coverage.yml
@@ -0,0 +1,94 @@
+name: coverage
+
+defaults:
+ run:
+ # Use a bash shell so we can use the same syntax for environment variable
+ # access regardless of the host operating system
+ shell: bash -e -x {0}
+
+on:
+ # https://github.community/t/how-to-trigger-an-action-on-push-or-pull-request-but-not-both/16662
+ workflow_dispatch:
+ 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: # 4
+
+
+jobs:
+ #----------------------------------------------------------------------------
+ coverage:
+ name: coverage/c++${{matrix.std}}
+ if: |
+ (!contains(github.event.head_commit.message, 'skip all')) ||
+ (!contains(github.event.head_commit.message, 'skip coverage')) ||
+ contains(github.event.head_commit.message, 'only coverage')
+ continue-on-error: true
+ 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}
+ 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}}",
+ CODECOV_TOKEN: "${{secrets.CODECOV_TOKEN}}",
+ COVERALLS_REPO_TOKEN: "${{secrets.COVERALLS_REPO_TOKEN}}",
+ # coveralls disabled: https://github.com/lemurheavy/coveralls-public/issues/1665
+ # https://docs.coveralls.io/parallel-build-webhook
+ #COVERALLS_PARALLEL: true
+ }
+ steps:
+ - {name: checkout, uses: actions/checkout@v3, with: {submodules: recursive}}
+ - {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-coverage, run: source .github/setenv.sh && c4_run_target static64 ryml-coverage}
+ - name: static64-coverage-artifacts
+ uses: actions/upload-artifact@v3
+ with:
+ name: coverage-static64-cxx${{matrix.std}}
+ path: |
+ build/static64/lcov
+ build/static64/coverage3-final_filtered.lcov
+ - {name: static64-submit-codecov, run: source .github/setenv.sh && c4_submit_coverage static64 codecov}
+ # coveralls disabled: https://github.com/lemurheavy/coveralls-public/issues/1665
+ #- {name: static64-submit-coveralls, run: "if [ \"${{matrix.std}}\" == \"17\" ] ; then ( source .github/setenv.sh && c4_submit_coverage static64 coveralls ) ; fi" }
+ - 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-coverage, run: source .github/setenv.sh && c4_run_target static32 ryml-coverage}
+ - name: static32-coverage-artifacts
+ uses: actions/upload-artifact@v3
+ with:
+ name: coverage-static32-cxx${{matrix.std}}
+ path: |
+ build/static32/lcov
+ build/static32/coverage3-final_filtered.lcov
+ - {name: static32-submit-codecov, run: source .github/setenv.sh && c4_submit_coverage static32 codecov}
+ # coveralls disabled: https://github.com/lemurheavy/coveralls-public/issues/1665
+ #- {name: static32-submit-coveralls, run: source .github/setenv.sh && c4_submit_coverage static32 coveralls}
+
+ # coveralls disabled: https://github.com/lemurheavy/coveralls-public/issues/1665
+ # https://github.com/lemurheavy/coveralls-public/issues/1665
+ #coveralls_finish:
+ # needs: [coverage]
+ # runs-on: ubuntu-latest
+ # steps:
+ # - name: coveralls-notify
+ # #continue-on-error: true
+ # uses: coverallsapp/github-action@master
+ # with:
+ # github-token: ${{ secrets.github_token }}
+ # parallel-finished: true
+
diff --git a/thirdparty/ryml/.github/workflows/emscripten.yml b/thirdparty/ryml/.github/workflows/emscripten.yml
new file mode 100644
index 000000000..bc920d7ca
--- /dev/null
+++ b/thirdparty/ryml/.github/workflows/emscripten.yml
@@ -0,0 +1,71 @@
+name: emscripten
+
+defaults:
+ run:
+ # Use a bash shell so we can use the same syntax for environment variable
+ # access regardless of the host operating system
+ shell: bash -e -x {0}
+
+on:
+ # https://github.community/t/how-to-trigger-an-action-on-push-or-pull-request-but-not-both/16662
+ workflow_dispatch:
+ push:
+ branches:
+ - master
+ pull_request:
+ branches:
+ - master
+
+env:
+ PROJ_PFX_TARGET: ryml-
+ PROJ_PFX_CMAKE: RYML_
+ CMAKE_FLAGS: '-DRYML_TEST_SUITE=OFF'
+ NUM_JOBS_BUILD: # 4
+ EMSCRIPTEN_CACHE_FOLDER: 'emsdk-cache'
+
+jobs:
+
+ #----------------------------------------------------------------------------
+ emscripten:
+ if: |
+ (!contains(github.event.head_commit.message, 'skip all')) ||
+ (!contains(github.event.head_commit.message, 'skip emscripten')) ||
+ contains(github.event.head_commit.message, 'only emscripten')
+ name: emscripten/${{matrix.emver}}/c++${{matrix.std}}/${{matrix.bt}}
+ continue-on-error: true
+ runs-on: ${{matrix.os}}
+ strategy:
+ fail-fast: false
+ matrix:
+ include:
+ #- {std: 11, cxx: em++, emver: 2.0.34, bt: Debug , os: ubuntu-latest, bitlinks: static32}
+ - {std: 11, cxx: em++, emver: 2.0.34, bt: Release, os: ubuntu-latest, bitlinks: static32}
+ #- {std: 20, cxx: em++, emver: 2.0.34, bt: Debug , os: ubuntu-latest, bitlinks: static32}
+ - {std: 20, cxx: em++, emver: 2.0.34, bt: Release, os: ubuntu-latest, bitlinks: static32}
+ #- {std: 11, cxx: em++, emver: 3.0.0 , bt: Debug , os: ubuntu-latest, bitlinks: static32}
+ - {std: 11, cxx: em++, emver: 3.0.0 , bt: Release, os: ubuntu-latest, bitlinks: static32}
+ #- {std: 20, cxx: em++, emver: 3.0.0 , bt: Debug , os: ubuntu-latest, bitlinks: static32}
+ - {std: 20, cxx: em++, emver: 3.0.0 , bt: Release, os: ubuntu-latest, bitlinks: static32}
+ 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}}"
+ steps:
+ - {name: checkout, uses: actions/checkout@v3, with: {submodules: recursive}}
+ - name: setup emscripten cache
+ id: cache-system-libraries
+ uses: actions/cache@v3
+ with: {path: "${{env.EMSCRIPTEN_CACHE_FOLDER}}", key: "${{matrix.emver}}-${{runner.os}}"}
+ - name: setup emscripten
+ uses: mymindstorm/setup-emsdk@v11
+ with: {version: "${{matrix.emver}}", actions-cache-folder: "${{env.EMSCRIPTEN_CACHE_FOLDER}}"}
+ - {name: show info, run: source .github/setenv.sh && c4_show_info}
+ - 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_run_test static32}
diff --git a/thirdparty/ryml/.github/workflows/gcc.yml b/thirdparty/ryml/.github/workflows/gcc.yml
new file mode 100644
index 000000000..fd0337ed7
--- /dev/null
+++ b/thirdparty/ryml/.github/workflows/gcc.yml
@@ -0,0 +1,168 @@
+name: gcc
+
+defaults:
+ run:
+ # Use a bash shell so we can use the same syntax for environment variable
+ # access regardless of the host operating system
+ shell: bash -e -x {0}
+
+on:
+ # https://github.community/t/how-to-trigger-an-action-on-push-or-pull-request-but-not-both/16662
+ workflow_dispatch:
+ 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: # 4
+
+
+jobs:
+ gcc_canary:
+ name: ${{matrix.cxx}}/canary/${{matrix.bt}}
+ if: |
+ (!contains(github.event.head_commit.message, 'skip all')) ||
+ (!contains(github.event.head_commit.message, 'skip gcc')) ||
+ contains(github.event.head_commit.message, 'only gcc')
+ continue-on-error: true
+ runs-on: ${{matrix.os}}
+ strategy:
+ fail-fast: false
+ matrix:
+ include:
+ - {std: 11, cxx: g++-7 , bt: Debug , os: ubuntu-20.04, bitlinks: shared64 static32}
+ - {std: 11, cxx: g++-7 , bt: Release, os: ubuntu-20.04, bitlinks: shared64 static32}
+ - {std: 20, cxx: g++-10 , bt: Debug , os: ubuntu-20.04, bitlinks: shared64 static32}
+ - {std: 20, cxx: g++-10 , bt: Release, os: ubuntu-20.04, bitlinks: shared64 static32}
+ - {std: 11, cxx: g++-5 , bt: Debug , os: ubuntu-20.04, bitlinks: shared64 static32}
+ - {std: 11, cxx: g++-5 , bt: Release, os: ubuntu-20.04, bitlinks: shared64 static32}
+ - {std: 11, cxx: g++-4.8 , bt: Debug, os: ubuntu-18.04, bitlinks: shared64 static32}
+ - {std: 11, cxx: g++-4.8 , bt: Release, os: ubuntu-18.04, bitlinks: shared64 static32}
+ 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}}"}
+ steps:
+ - {name: checkout, uses: actions/checkout@v3, with: {submodules: recursive}}
+ - {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: shared64-configure---------------------------------------------------
+ run: source .github/setenv.sh && c4_cfg_test shared64
+ - {name: shared64-build, run: source .github/setenv.sh && c4_build_test shared64}
+ - {name: shared64-run, run: source .github/setenv.sh && c4_run_test shared64}
+ - {name: shared64-pack, run: source .github/setenv.sh && c4_package shared64}
+ - 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_run_test static64}
+ - {name: static64-pack, run: source .github/setenv.sh && c4_package static64}
+ - 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_run_test static32}
+ - {name: static32-pack, run: source .github/setenv.sh && c4_package static32}
+ - name: shared32-configure---------------------------------------------------
+ run: source .github/setenv.sh && c4_cfg_test shared32
+ - {name: shared32-build, run: source .github/setenv.sh && c4_build_test shared32}
+ - {name: shared32-run, run: source .github/setenv.sh && c4_run_test shared32}
+ - {name: shared32-pack, run: source .github/setenv.sh && c4_package shared32}
+
+ gcc_tabtokens:
+ name: tabtokens/${{matrix.cxx}}/canary/${{matrix.bt}}
+ if: |
+ (!contains(github.event.head_commit.message, 'skip all')) ||
+ (!contains(github.event.head_commit.message, 'skip gcc')) ||
+ contains(github.event.head_commit.message, 'only gcc')
+ continue-on-error: true
+ runs-on: ${{matrix.os}}
+ strategy:
+ fail-fast: false
+ matrix:
+ include:
+ - {std: 11, cxx: g++-7 , bt: Debug , os: ubuntu-20.04, bitlinks: shared64 static32, cmkflags: "-DRYML_WITH_TAB_TOKENS=ON"}
+ - {std: 11, cxx: g++-7 , bt: Release, os: ubuntu-20.04, bitlinks: shared64 static32, cmkflags: "-DRYML_WITH_TAB_TOKENS=ON"}
+ - {std: 20, cxx: g++-10 , bt: Debug , os: ubuntu-20.04, bitlinks: shared64 static32, cmkflags: "-DRYML_WITH_TAB_TOKENS=ON"}
+ - {std: 20, cxx: g++-10 , bt: Release, os: ubuntu-20.04, bitlinks: shared64 static32, cmkflags: "-DRYML_WITH_TAB_TOKENS=ON"}
+ - {std: 11, cxx: g++-5 , bt: Debug , os: ubuntu-20.04, bitlinks: shared64 static32, cmkflags: "-DRYML_WITH_TAB_TOKENS=ON"}
+ - {std: 11, cxx: g++-5 , bt: Release, os: ubuntu-20.04, bitlinks: shared64 static32, cmkflags: "-DRYML_WITH_TAB_TOKENS=ON"}
+ env: {STD: "${{matrix.std}}", CXX_: "${{matrix.cxx}}", BT: "${{matrix.bt}}", BITLINKS: "${{matrix.bitlinks}}",
+ CMAKE_FLAGS: "${{matrix.cmkflags}}",
+ VG: "${{matrix.vg}}", SAN: "${{matrix.san}}", LINT: "${{matrix.lint}}", OS: "${{matrix.os}}"}
+ steps:
+ - {name: checkout, uses: actions/checkout@v3, with: {submodules: recursive}}
+ - {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: shared64-configure---------------------------------------------------
+ run: source .github/setenv.sh && c4_cfg_test shared64
+ - {name: shared64-build, run: source .github/setenv.sh && c4_build_test shared64}
+ - {name: shared64-run, run: source .github/setenv.sh && c4_run_test shared64}
+ - {name: shared64-pack, run: source .github/setenv.sh && c4_package shared64}
+ - 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_run_test static64}
+ - {name: static64-pack, run: source .github/setenv.sh && c4_package static64}
+ - 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_run_test static32}
+ - {name: static32-pack, run: source .github/setenv.sh && c4_package static32}
+ - name: shared32-configure---------------------------------------------------
+ run: source .github/setenv.sh && c4_cfg_test shared32
+ - {name: shared32-build, run: source .github/setenv.sh && c4_build_test shared32}
+ - {name: shared32-run, run: source .github/setenv.sh && c4_run_test shared32}
+ - {name: shared32-pack, run: source .github/setenv.sh && c4_package shared32}
+
+ #----------------------------------------------------------------------------
+ gcc_extended:
+ name: ${{matrix.cxx}}/extended/${{matrix.bt}}
+ needs: gcc_canary
+ if: |
+ (!contains(github.event.head_commit.message, 'skip all')) ||
+ (!contains(github.event.head_commit.message, 'skip gcc')) ||
+ contains(github.event.head_commit.message, 'only gcc')
+ continue-on-error: true
+ runs-on: ${{matrix.os}}
+ strategy:
+ fail-fast: false
+ matrix:
+ include:
+ # VALGRIND
+ - {std: 11, cxx: g++-10, bt: Debug , vg: ON, os: ubuntu-20.04}
+ - {std: 11, cxx: g++-10, bt: Release, vg: ON, os: ubuntu-20.04}
+ - {std: 14, cxx: g++-10, bt: Debug , vg: ON, os: ubuntu-20.04}
+ - {std: 14, cxx: g++-10, bt: Release, vg: ON, os: ubuntu-20.04}
+ - {std: 17, cxx: g++-10, bt: Debug , vg: ON, os: ubuntu-20.04}
+ - {std: 17, cxx: g++-10, bt: Release, vg: ON, os: ubuntu-20.04}
+ - {std: 20, cxx: g++-10, bt: Debug , vg: ON, os: ubuntu-20.04}
+ - {std: 20, cxx: g++-10, bt: Release, vg: ON, os: ubuntu-20.04}
+ - {std: 11, cxx: g++-4.8, bt: Debug, vg: ON, os: ubuntu-18.04}
+ - {std: 11, cxx: g++-4.8, bt: Release, vg: ON, os: ubuntu-18.04}
+ 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}}"}
+ steps:
+ - {name: checkout, uses: actions/checkout@v3, with: {submodules: recursive}}
+ - {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: shared64-configure---------------------------------------------------
+ run: source .github/setenv.sh && c4_cfg_test shared64
+ - {name: shared64-build, run: source .github/setenv.sh && c4_build_test shared64}
+ - {name: shared64-run, run: source .github/setenv.sh && c4_run_test shared64}
+ - {name: shared64-pack, run: source .github/setenv.sh && c4_package shared64}
+ - 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_run_test static64}
+ - {name: static64-pack, run: source .github/setenv.sh && c4_package static64}
+ - 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_run_test static32}
+ - {name: static32-pack, run: source .github/setenv.sh && c4_package static32}
+ - name: shared32-configure---------------------------------------------------
+ run: source .github/setenv.sh && c4_cfg_test shared32
+ - {name: shared32-build, run: source .github/setenv.sh && c4_build_test shared32}
+ - {name: shared32-run, run: source .github/setenv.sh && c4_run_test shared32}
+ - {name: shared32-pack, run: source .github/setenv.sh && c4_package shared32}
diff --git a/thirdparty/ryml/.github/workflows/install.yml b/thirdparty/ryml/.github/workflows/install.yml
new file mode 100644
index 000000000..b8b74c682
--- /dev/null
+++ b/thirdparty/ryml/.github/workflows/install.yml
@@ -0,0 +1,105 @@
+name: test_install
+
+defaults:
+ run:
+ # Use a bash shell so we can use the same syntax for environment variable
+ # access regardless of the host operating system
+ shell: bash -e -x {0}
+
+on:
+ # https://github.community/t/how-to-trigger-an-action-on-push-or-pull-request-but-not-both/16662
+ workflow_dispatch:
+ push:
+ branches:
+ - master
+ pull_request:
+ branches:
+ - master
+
+env:
+ PROJ_PFX_TARGET: ryml-
+ PROJ_PFX_CMAKE: RYML_
+ CMAKE_FLAGS:
+ NUM_JOBS_BUILD: # 4
+
+jobs:
+
+ #----------------------------------------------------------------------------
+ install_tests:
+ if: |
+ (!contains(github.event.head_commit.message, 'skip all')) ||
+ (!contains(github.event.head_commit.message, 'skip test_install')) ||
+ contains(github.event.head_commit.message, 'only test_install')
+ name: ${{matrix.name}}/${{matrix.bt}}
+ continue-on-error: true
+ runs-on: ${{matrix.os}}
+ strategy:
+ fail-fast: false
+ matrix:
+ include:
+ - {name: find_package/linux , sdir: test/test_install , os: ubuntu-20.04, cxx: g++-10 , gen: "-DCMAKE_CXX_COMPILER=g++-10" , tgt: all , bt: Release, vars: "-Dryml_DIR=$GITHUB_WORKSPACE/$PDIR/lib/cmake/ryml -DRYML_TEST_INSTALL_PACKAGE_MODE=ON", commonvars: }
+ - {name: find_package/linux , sdir: test/test_install , os: ubuntu-20.04, cxx: g++-10 , gen: "-DCMAKE_CXX_COMPILER=g++-10" , tgt: all , bt: Debug , vars: "-Dryml_DIR=$GITHUB_WORKSPACE/$PDIR/lib/cmake/ryml -DRYML_TEST_INSTALL_PACKAGE_MODE=ON", commonvars: }
+ - {name: find_package/linux/libcxx, sdir: test/test_install , os: ubuntu-20.04, cxx: clang++-9, gen: "-DCMAKE_CXX_COMPILER=clang++-9" , tgt: all , bt: Release, vars: "-Dryml_DIR=$GITHUB_WORKSPACE/$PDIR/lib/cmake/ryml -DRYML_TEST_INSTALL_PACKAGE_MODE=ON", commonvars: "-DRYML_USE_LIBCXX=ON"}
+ - {name: find_package/linux/libcxx, sdir: test/test_install , os: ubuntu-20.04, cxx: clang++-9, gen: "-DCMAKE_CXX_COMPILER=clang++-9" , tgt: all , bt: Debug , vars: "-Dryml_DIR=$GITHUB_WORKSPACE/$PDIR/lib/cmake/ryml -DRYML_TEST_INSTALL_PACKAGE_MODE=ON", commonvars: "-DRYML_USE_LIBCXX=ON"}
+ - {name: find_package/macos , sdir: test/test_install , os: macos-11.0 , cxx: xcode , gen: "-G Xcode -DCMAKE_OSX_ARCHITECTURES=x86_64", tgt: ALL_BUILD, bt: Release, vars: "-Dryml_DIR=$GITHUB_WORKSPACE/$PDIR/lib/cmake/ryml -DRYML_TEST_INSTALL_PACKAGE_MODE=ON", commonvars: }
+ - {name: find_package/macos , sdir: test/test_install , os: macos-11.0 , cxx: xcode , gen: "-G Xcode -DCMAKE_OSX_ARCHITECTURES=x86_64", tgt: ALL_BUILD, bt: Debug , vars: "-Dryml_DIR=$GITHUB_WORKSPACE/$PDIR/lib/cmake/ryml -DRYML_TEST_INSTALL_PACKAGE_MODE=ON", commonvars: }
+ - {name: find_package/win , sdir: test/test_install , os: windows-2019, cxx: vs2019 , gen: "-G 'Visual Studio 16 2019' -A x64" , tgt: ALL_BUILD, bt: Release, vars: "-Dryml_DIR=$GITHUB_WORKSPACE/$PDIR/cmake -DRYML_TEST_INSTALL_PACKAGE_MODE=ON", commonvars: }
+ - {name: find_package/win , sdir: test/test_install , os: windows-2019, cxx: vs2019 , gen: "-G 'Visual Studio 16 2019' -A x64" , tgt: ALL_BUILD, bt: Debug , vars: "-Dryml_DIR=$GITHUB_WORKSPACE/$PDIR/cmake -DRYML_TEST_INSTALL_PACKAGE_MODE=ON", commonvars: }
+ #
+ - {name: find_library/linux , sdir: test/test_install , os: ubuntu-20.04, cxx: g++-10 , gen: "-DCMAKE_CXX_COMPILER=g++-10" , tgt: all , bt: Release, vars: "-DCMAKE_PREFIX_PATH=$GITHUB_WORKSPACE/$PDIR -DRYML_TEST_INSTALL_PACKAGE_MODE=OFF", commonvars: }
+ - {name: find_library/linux , sdir: test/test_install , os: ubuntu-20.04, cxx: g++-10 , gen: "-DCMAKE_CXX_COMPILER=g++-10" , tgt: all , bt: Debug , vars: "-DCMAKE_PREFIX_PATH=$GITHUB_WORKSPACE/$PDIR -DRYML_TEST_INSTALL_PACKAGE_MODE=OFF", commonvars: }
+ - {name: find_library/linux/libcxx, sdir: test/test_install , os: ubuntu-20.04, cxx: clang++-9, gen: "-DCMAKE_CXX_COMPILER=clang++-9" , tgt: all , bt: Release, vars: "-DCMAKE_PREFIX_PATH=$GITHUB_WORKSPACE/$PDIR -DRYML_TEST_INSTALL_PACKAGE_MODE=OFF", commonvars: "-DRYML_USE_LIBCXX=ON"}
+ - {name: find_library/linux/libcxx, sdir: test/test_install , os: ubuntu-20.04, cxx: clang++-9, gen: "-DCMAKE_CXX_COMPILER=clang++-9" , tgt: all , bt: Debug , vars: "-DCMAKE_PREFIX_PATH=$GITHUB_WORKSPACE/$PDIR -DRYML_TEST_INSTALL_PACKAGE_MODE=OFF", commonvars: "-DRYML_USE_LIBCXX=ON"}
+ - {name: find_library/macos , sdir: test/test_install , os: macos-11.0 , cxx: xcode , gen: "-G Xcode -DCMAKE_OSX_ARCHITECTURES=x86_64", tgt: ALL_BUILD, bt: Release, vars: "-DCMAKE_PREFIX_PATH=$GITHUB_WORKSPACE/$PDIR -DRYML_TEST_INSTALL_PACKAGE_MODE=OFF", commonvars: }
+ - {name: find_library/macos , sdir: test/test_install , os: macos-11.0 , cxx: xcode , gen: "-G Xcode -DCMAKE_OSX_ARCHITECTURES=x86_64", tgt: ALL_BUILD, bt: Debug , vars: "-DCMAKE_PREFIX_PATH=$GITHUB_WORKSPACE/$PDIR -DRYML_TEST_INSTALL_PACKAGE_MODE=OFF", commonvars: }
+ - {name: find_library/win , sdir: test/test_install , os: windows-2019, cxx: vs2019 , gen: "-G 'Visual Studio 16 2019' -A x64" , tgt: ALL_BUILD, bt: Release, vars: "-DCMAKE_PREFIX_PATH=$GITHUB_WORKSPACE/$PDIR -DRYML_TEST_INSTALL_PACKAGE_MODE=OFF", commonvars: }
+ - {name: find_library/win , sdir: test/test_install , os: windows-2019, cxx: vs2019 , gen: "-G 'Visual Studio 16 2019' -A x64" , tgt: ALL_BUILD, bt: Debug , vars: "-DCMAKE_PREFIX_PATH=$GITHUB_WORKSPACE/$PDIR -DRYML_TEST_INSTALL_PACKAGE_MODE=OFF", commonvars: }
+ #
+ - {name: singleheader/linux , sdir: test/test_singleheader, os: ubuntu-20.04, cxx: g++-10 , gen: "-DCMAKE_CXX_COMPILER=g++-10" , tgt: all , bt: Release, vars: , commonvars: }
+ - {name: singleheader/linux , sdir: test/test_singleheader, os: ubuntu-20.04, cxx: g++-10 , gen: "-DCMAKE_CXX_COMPILER=g++-10" , tgt: all , bt: Debug , vars: , commonvars: }
+ - {name: singleheader/linux/libcxx, sdir: test/test_singleheader, os: ubuntu-20.04, cxx: clang++-9, gen: "-DCMAKE_CXX_COMPILER=clang++-9" , tgt: all , bt: Release, vars: , commonvars: "-DRYML_USE_LIBCXX=ON"}
+ - {name: singleheader/linux/libcxx, sdir: test/test_singleheader, os: ubuntu-20.04, cxx: clang++-9, gen: "-DCMAKE_CXX_COMPILER=clang++-9" , tgt: all , bt: Debug , vars: , commonvars: "-DRYML_USE_LIBCXX=ON"}
+ - {name: singleheader/macos , sdir: test/test_singleheader, os: macos-11.0 , cxx: xcode , gen: "-G Xcode -DCMAKE_OSX_ARCHITECTURES=x86_64", tgt: ALL_BUILD, bt: Release, vars: , commonvars: }
+ - {name: singleheader/macos , sdir: test/test_singleheader, os: macos-11.0 , cxx: xcode , gen: "-G Xcode -DCMAKE_OSX_ARCHITECTURES=x86_64", tgt: ALL_BUILD, bt: Debug , vars: , commonvars: }
+ - {name: singleheader/win , sdir: test/test_singleheader, os: windows-2019, cxx: vs2019 , gen: "-G 'Visual Studio 16 2019' -A x64" , tgt: ALL_BUILD, bt: Release, vars: , commonvars: }
+ - {name: singleheader/win , sdir: test/test_singleheader, os: windows-2019, cxx: vs2019 , gen: "-G 'Visual Studio 16 2019' -A x64" , tgt: ALL_BUILD, bt: Debug , vars: , commonvars: }
+ env:
+ CXX_: "${{matrix.cxx}}"
+ BT: "${{matrix.bt}}"
+ OS: "${{matrix.os}}"
+ BDIR: "build/${{matrix.name}}-${{matrix.bt}}"
+ IDIR: "install/${{matrix.name}}-${{matrix.bt}}"
+ PDIR: "prefix/${{matrix.name}}-${{matrix.bt}}"
+ steps:
+ - {name: checkout, uses: actions/checkout@v3, with: {submodules: recursive}}
+ - {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: Install python 3.9
+ uses: actions/setup-python@v4
+ with: { python-version: 3.9 }
+ - name: preinstall
+ run: |
+ if [ "${{matrix.sdir}}" == "test/test_install" ] ; then
+ mkdir -p $BDIR-staging
+ cmake -S . -B $BDIR-staging -DCMAKE_INSTALL_PREFIX=$PDIR -DCMAKE_BUILD_TYPE=${{matrix.bt}} ${{matrix.gen}} ${{matrix.commonvars}}
+ cmake --build $BDIR-staging --config ${{matrix.bt}} --target ${{matrix.tgt}} -j
+ cmake --build $BDIR-staging --config ${{matrix.bt}} --target install
+ fi
+ - name: configure
+ run: |
+ mkdir -p $BDIR
+ mkdir -p $IDIR
+ cmake -S ${{matrix.sdir}} -B $BDIR \
+ -DRYML_BUILD_TESTS=ON \
+ -DRYML_VALGRIND=OFF \
+ -DCMAKE_BUILD_TYPE=${{matrix.bt}} \
+ -DCMAKE_INSTALL_PREFIX=$IDIR \
+ ${{matrix.gen}} \
+ ${{matrix.vars}} \
+ ${{matrix.commonvars}}
+ - name: build
+ run: |
+ cmake --build $BDIR --config ${{matrix.bt}} --target ryml-test-build -j
+ - name: run
+ run: |
+ cmake --build $BDIR --config ${{matrix.bt}} --target ryml-test-run
diff --git a/thirdparty/ryml/.github/workflows/macosx.yml b/thirdparty/ryml/.github/workflows/macosx.yml
new file mode 100644
index 000000000..a9fb97ffb
--- /dev/null
+++ b/thirdparty/ryml/.github/workflows/macosx.yml
@@ -0,0 +1,103 @@
+name: macosx
+
+defaults:
+ run:
+ # Use a bash shell so we can use the same syntax for environment variable
+ # access regardless of the host operating system
+ shell: bash -e -x {0}
+
+on:
+ # https://github.community/t/how-to-trigger-an-action-on-push-or-pull-request-but-not-both/16662
+ workflow_dispatch:
+ 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: # 4
+
+
+# ubuntu-20.04:
+# # https://github.com/actions/virtual-environments/blob/main/images/linux/Ubuntu2004-README.md
+# gcc: 7.5.0, 8.4.0, 9.3.0, 10.2.0
+# clang: 8.0.1, 9.0.1, 10.0.0
+# ubuntu-18.04:
+# # https://github.com/actions/virtual-environments/blob/main/images/linux/Ubuntu1804-README.md
+# gcc: 7.5.0, 8.4.0, 9.3.0, 10.1.0
+# clang: 6.0.0, 8.0.0, 9.0.0
+# macos-11.0: macOS Big Sur 11.0
+# # https://github.com/actions/virtual-environments/blob/main/images/macos/macos-11.0-Readme.md
+# Xcode 12.1 11.7
+# clang/LLVM 10.0.1
+# gcc-8 gcc-9
+# macos-10.15: macOS Catalina 10.15
+# # https://github.com/actions/virtual-environments/blob/main/images/macos/macos-10.15-Readme.md
+# Xcode 12.1 11.7
+# clang/LLVM 11.0.0
+# gcc-8 gcc-9
+# windows-2019:
+# # https://github.com/actions/virtual-environments/blob/main/images/win/Windows2019-Readme.md
+# vs2019
+# windows-2016:
+# # https://github.com/actions/virtual-environments/blob/main/images/win/Windows2016-Readme.md
+# vs2017
+jobs:
+
+ #----------------------------------------------------------------------------
+ macosx:
+ if: |
+ (!contains(github.event.head_commit.message, 'skip all')) ||
+ (!contains(github.event.head_commit.message, 'skip macosx')) ||
+ contains(github.event.head_commit.message, 'only macosx')
+ continue-on-error: true
+ runs-on: ${{matrix.os}}
+ strategy:
+ fail-fast: false
+ matrix:
+ include:
+ - {std: 11, cxx: xcode, xcver: 13, bt: Debug , os: macos-11, bitlinks: shared64 static64}
+ - {std: 11, cxx: xcode, xcver: 13, bt: Release, os: macos-11, bitlinks: shared64 static64}
+ - {std: 17, cxx: xcode, xcver: 13, bt: Debug , os: macos-11, bitlinks: shared64 static64}
+ - {std: 17, cxx: xcode, xcver: 13, bt: Release, os: macos-11, bitlinks: shared64 static64}
+ #
+ - {std: 11, cxx: xcode, xcver: 12, bt: Debug , os: macos-11, bitlinks: shared64 static64}
+ - {std: 11, cxx: xcode, xcver: 12, bt: Release, os: macos-11, bitlinks: shared64 static64}
+ - {std: 17, cxx: xcode, xcver: 12, bt: Debug , os: macos-11, bitlinks: shared64 static64}
+ - {std: 17, cxx: xcode, xcver: 12, bt: Release, os: macos-11, bitlinks: shared64 static64}
+ #
+ - {std: 11, cxx: xcode, xcver: 11, bt: Debug , os: macos-11, bitlinks: shared64 static64}
+ - {std: 11, cxx: xcode, xcver: 11, bt: Release, os: macos-11, bitlinks: shared64 static64}
+ - {std: 17, cxx: xcode, xcver: 11, bt: Debug , os: macos-11, bitlinks: shared64 static64}
+ - {std: 17, cxx: xcode, xcver: 11, bt: Release, os: macos-11, bitlinks: shared64 static64}
+ 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}}"}
+ steps:
+ - {name: checkout, uses: actions/checkout@v3, with: {submodules: recursive}}
+ - {name: xcode, uses: maxim-lobanov/setup-xcode@v1, with: {xcode-version: "${{matrix.xcver}}" }}
+ - {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: shared64-configure---------------------------------------------------
+ run: source .github/setenv.sh && c4_cfg_test shared64
+ - {name: shared64-build, run: source .github/setenv.sh && c4_build_test shared64}
+ - {name: shared64-run, run: source .github/setenv.sh && c4_run_test shared64}
+ - {name: shared64-pack, run: source .github/setenv.sh && c4_package shared64}
+ - 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_run_test static64}
+ - {name: static64-pack, run: source .github/setenv.sh && c4_package static64}
+ - name: shared32-configure---------------------------------------------------
+ run: source .github/setenv.sh && c4_cfg_test shared32
+ - {name: shared32-build, run: source .github/setenv.sh && c4_build_test shared32}
+ - {name: shared32-run, run: source .github/setenv.sh && c4_run_test shared32}
+ - {name: shared32-pack, run: source .github/setenv.sh && c4_package shared32}
+ - 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_run_test static32}
+ - {name: static32-pack, run: source .github/setenv.sh && c4_package static32}
diff --git a/thirdparty/ryml/.github/workflows/rarearchs.yml b/thirdparty/ryml/.github/workflows/rarearchs.yml
new file mode 100644
index 000000000..8306b54ae
--- /dev/null
+++ b/thirdparty/ryml/.github/workflows/rarearchs.yml
@@ -0,0 +1,123 @@
+name: rarearchs
+
+defaults:
+ run:
+ # Use a bash shell so we can use the same syntax for environment variable
+ # access regardless of the host operating system
+ shell: bash -e -x {0}
+
+on:
+ # https://github.community/t/how-to-trigger-an-action-on-push-or-pull-request-but-not-both/16662
+ workflow_dispatch:
+ push:
+ branches:
+ - master
+ pull_request:
+ branches:
+ - master
+
+jobs:
+ rarearchs:
+ if: |
+ (!contains(github.event.head_commit.message, 'skip all')) ||
+ (!contains(github.event.head_commit.message, 'skip rarearchs')) ||
+ contains(github.event.head_commit.message, 'only rarearchs')
+ name: ${{matrix.arch}}/c++${{matrix.std}}/${{matrix.bt}}
+ continue-on-error: true
+ runs-on: ubuntu-20.04
+ strategy:
+ fail-fast: false
+ matrix:
+ include:
+ - {std: 11, bt: Debug , arch: aarch64, distro: ubuntu20.04}
+ - {std: 11, bt: Release, arch: aarch64, distro: ubuntu20.04}
+ - {std: 14, bt: Debug , arch: aarch64, distro: ubuntu20.04}
+ - {std: 14, bt: Release, arch: aarch64, distro: ubuntu20.04}
+ - {std: 17, bt: Debug , arch: aarch64, distro: ubuntu20.04}
+ - {std: 17, bt: Release, arch: aarch64, distro: ubuntu20.04}
+ #
+ - {std: 11, bt: Debug , arch: ppc64le, distro: ubuntu20.04}
+ - {std: 11, bt: Release, arch: ppc64le, distro: ubuntu20.04}
+ - {std: 14, bt: Debug , arch: ppc64le, distro: ubuntu20.04}
+ - {std: 14, bt: Release, arch: ppc64le, distro: ubuntu20.04}
+ - {std: 17, bt: Debug , arch: ppc64le, distro: ubuntu20.04}
+ - {std: 17, bt: Release, arch: ppc64le, distro: ubuntu20.04}
+ #
+ - {std: 11, bt: Debug , arch: s390x , distro: ubuntu20.04}
+ - {std: 11, bt: Release, arch: s390x , distro: ubuntu20.04}
+ - {std: 14, bt: Debug , arch: s390x , distro: ubuntu20.04}
+ - {std: 14, bt: Release, arch: s390x , distro: ubuntu20.04}
+ - {std: 17, bt: Debug , arch: s390x , distro: ubuntu20.04}
+ - {std: 17, bt: Release, arch: s390x , distro: ubuntu20.04}
+ #
+ #- {std: 11, bt: Debug , arch: armv6 , distro: bullseye}
+ #- {std: 11, bt: Release, arch: armv6 , distro: bullseye}
+ #- {std: 14, bt: Debug , arch: armv6 , distro: bullseye}
+ #- {std: 14, bt: Release, arch: armv6 , distro: bullseye}
+ #- {std: 17, bt: Debug , arch: armv6 , distro: bullseye}
+ #- {std: 17, bt: Release, arch: armv6 , distro: bullseye}
+ #
+ #- {std: 11, bt: Debug , arch: armv7 , distro: ubuntu20.04}
+ #- {std: 11, bt: Release, arch: armv7 , distro: ubuntu20.04}
+ #- {std: 14, bt: Debug , arch: armv7 , distro: ubuntu20.04}
+ #- {std: 14, bt: Release, arch: armv7 , distro: ubuntu20.04}
+ #- {std: 17, bt: Debug , arch: armv7 , distro: ubuntu20.04}
+ #- {std: 17, bt: Release, arch: armv7 , distro: ubuntu20.04}
+ steps:
+ - {name: checkout, uses: actions/checkout@v3, with: {submodules: recursive}}
+ - name: test
+ uses: uraimo/[email protected]
+ with:
+ arch: ${{matrix.arch}}
+ distro: ${{matrix.distro}}
+ install: |
+ set -x
+ start_time=$SECONDS
+ time apt-get update -y
+ time apt-get install -y \
+ git \
+ build-essential
+ # arm platforms need an up-to-date cmake:
+ # https://gitlab.kitware.com/cmake/cmake/-/issues/20568
+ if [ "${{matrix.arch}}" == "armv6" ] || [ "${{matrix.arch}}" == "armv7" ] ; then
+ time apt-get install -y \
+ gpg \
+ wget \
+ apt-transport-https
+ wget --no-check-certificate -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | gpg --dearmor - | tee /usr/share/keyrings/kitware-archive-keyring.gpg >/dev/null
+ echo 'deb [signed-by=/usr/share/keyrings/kitware-archive-keyring.gpg] https://apt.kitware.com/ubuntu/ focal main' | tee /etc/apt/sources.list.d/kitware.list >/dev/null
+ time apt-get update -y
+ rm /usr/share/keyrings/kitware-archive-keyring.gpg
+ time apt-get install kitware-archive-keyring
+ time apt-get update -y
+ fi
+ time apt-get install -y cmake cmake-data
+ cmake --version
+ echo "install took $((SECONDS - start_time))"
+ run: |
+ set -x
+ start_time=$SECONDS
+ uname -a
+ pwd
+ ls -lFhp .
+ #
+ bdir=build_${{matrix.arch}}_${{matrix.bt}}_${{matrix.std}}
+ idir=install_${{matrix.arch}}_${{matrix.bt}}_${{matrix.std}}
+ mkdir -p $bdir
+ #
+ time cmake -S . -B $bdir \
+ -DCMAKE_INSTALL_PREFIX=$idir \
+ -DCMAKE_BUILD_TYPE=${{matrix.bt}} \
+ -DC4_CXX_STANDARD=${{matrix.std}} \
+ -DCXX_STANDARD=${{matrix.std}} \
+ -DRYML_DEV=ON \
+ -DRYML_TEST_SUITE=ON \
+ -DRYML_BUILD_BENCHMARKS=OFF \
+ -DRYML_SANITIZE=OFF \
+ -DRYML_LINT=OFF \
+ -DRYML_VALGRIND=OFF
+ #
+ time cmake --build $bdir -j 3 --target ryml-test-build
+ #
+ time cmake --build $bdir -j 3 --target ryml-test-run
+ echo "run took $((SECONDS - start_time))"
diff --git a/thirdparty/ryml/.github/workflows/release.yml b/thirdparty/ryml/.github/workflows/release.yml
new file mode 100644
index 000000000..3797359b8
--- /dev/null
+++ b/thirdparty/ryml/.github/workflows/release.yml
@@ -0,0 +1,366 @@
+name: release
+
+defaults:
+ run:
+ # Use a bash shell so we can use the same syntax for environment variable
+ # access regardless of the host operating system
+ shell: bash -e -x {0}
+
+on:
+ # https://github.community/t/how-to-trigger-an-action-on-push-or-pull-request-but-not-both/16662
+ workflow_dispatch:
+ push:
+ tags:
+ - v0.*
+ - v1.*
+ - v2.*
+ branches:
+ - master
+ pull_request:
+ branches:
+ - master
+
+env:
+ PROJ_PKG_NAME: rapidyaml-
+ PROJ_PFX_TARGET: ryml-
+ PROJ_PFX_CMAKE: RYML_
+ CMAKE_FLAGS: -DRYML_TEST_SUITE=OFF
+ NUM_JOBS_BUILD: # 4
+
+
+# useful to iterate when fixing the release:
+# ver=0.2.1 ; ( set -x ; git tag -d v$ver ; git push origin :v$ver ) ; (set -x ; set -e ; tbump --only-patch --non-interactive $ver ; git add -u ; git commit --amend --no-edit ; git tag --annotate --message "v$ver" "v$ver" ; git push -f --tags origin )
+
+jobs:
+
+ gettag:
+ if: |
+ (!contains(github.event.head_commit.message, 'skip all')) ||
+ (!contains(github.event.head_commit.message, 'skip release')) ||
+ contains(github.event.head_commit.message, 'only release')
+ runs-on: ubuntu-latest
+ steps:
+ # use fetch-depth to ensure all tags are fetched
+ - {name: checkout, uses: actions/checkout@v3, with: {submodules: recursive, fetch-depth: 0}}
+ - name: Variables (from tag)
+ if: contains(github.ref, 'tags/v')
+ run: |
+ # https://github.community/t/how-to-get-just-the-tag-name/16241/11
+ SRC_TAG=${GITHUB_REF#refs/tags/}
+ SRC_VERSION=${GITHUB_REF#refs/tags/v}
+ cat <<EOF > vars.sh
+ export SRC_TAG=$SRC_TAG
+ export SRC_VERSION=$SRC_VERSION
+ EOF
+ - name: Variables (from commit, no tag)
+ if: ${{ !contains(github.ref, 'tags/v') }}
+ run: |
+ set -x
+ branch_name=${GITHUB_REF#refs/heads/}
+ # builds triggered from PRs have the branch_name like this: refs/pull/150/merge
+ # so filter to eg pr0150_merge
+ branch_name=`echo $branch_name | sed "s:refs/pull/\([0-9]*\)/\(.*\):pr0\1_\2:"`
+ # sanitize the branch name; eg merge/foo-bar -> merge_foo_bar
+ branch_name=`echo $branch_name | sed 's:[/.-]:_:g'`
+ SRC_TAG=$(git describe || git rev-parse --short HEAD) # eg v0.2.0-110-gda837e0
+ SRC_VERSION="${branch_name}-${SRC_TAG}"
+ cat <<EOF > vars.sh
+ export SRC_TAG=$SRC_TAG
+ export SRC_VERSION=$SRC_VERSION
+ EOF
+ - name: Verify vars.sh
+ run: cat vars.sh ; source vars.sh ; echo $SRC_TAG ; echo $SRC_VERSION
+ - name: Save vars.sh
+ uses: actions/upload-artifact@v3
+ with: {name: vars.sh, path: ./vars.sh}
+
+ #----------------------------------------------------------------------------
+ # create source packages
+ src:
+ if: |
+ (!contains(github.event.head_commit.message, 'skip all')) ||
+ (!contains(github.event.head_commit.message, 'skip release')) ||
+ contains(github.event.head_commit.message, 'only release')
+ needs: gettag
+ runs-on: ubuntu-latest
+ steps:
+ - {name: checkout, uses: actions/checkout@v3, with: {submodules: recursive}}
+ - name: Download vars.sh
+ uses: actions/download-artifact@v3
+ with: {name: vars.sh, path: ./}
+ - name: Install python 3.9
+ uses: actions/setup-python@v4
+ with: { python-version: 3.9 }
+ - name: Install requirements
+ run: |
+ sudo -E pip install git-archive-all
+ - name: Create source packages
+ run: |
+ pwd
+ ls -lFhp
+ source vars.sh
+ echo SRC_TAG=$SRC_TAG
+ echo SRC_VERSION=$SRC_VERSION
+ id=${PROJ_PKG_NAME}${SRC_VERSION}
+ name=${id}-src
+ mkdir -p assets
+ git-archive-all --prefix $name assets/$name.tgz
+ git-archive-all --prefix $name assets/$name.zip
+ python --version
+ python tools/amalgamate.py assets/$id.hpp
+ - name: Save source artifacts
+ uses: actions/upload-artifact@v3
+ with: {name: assets, path: assets}
+
+ #----------------------------------------------------------------------------
+ # create c++ packages
+ cpp:
+ if: |
+ (!contains(github.event.head_commit.message, 'skip all')) ||
+ (!contains(github.event.head_commit.message, 'skip release')) ||
+ contains(github.event.head_commit.message, 'only release')
+ name: cpp/${{matrix.config.os}}/${{matrix.config.gen}}
+ needs: gettag
+ runs-on: ${{matrix.config.os}}
+ env: {DEV: OFF, BT: Release, OS: "${{matrix.config.os}}", CXX_: "${{matrix.config.cxx}}", GEN: "${{matrix.config.gen}}"}
+ strategy:
+ fail-fast: false
+ matrix:
+ config:
+ # name of the artifact | suffix (gen) | suffix (package) | cpack gen | mime type | os | cxx
+ - {name: Ubuntu 20.04 deb , sfxg: unix64.deb, sfxp: ubuntu-20.04.deb , gen: DEB , mime: vnd.debian.binary-package, os: ubuntu-20.04 }
+ #- {name: Ubuntu 18.04 deb , sfxg: unix64.deb, sfxp: ubuntu-18.04.deb , gen: DEB , mime: vnd.debian.binary-package, os: ubuntu-18.04 }
+ - {name: Windows VS2019 zip, sfxg: win64.zip , sfxp: windows-vs2019.zip , gen: ZIP , mime: zip , os: windows-2019, cxx: vs2019}
+ - {name: MacOSX sh , sfxg: apple64.sh, sfxp: macosx-xcode.sh , gen: STGZ , mime: x-sh , os: macos-11.0 , cxx: xcode }
+ steps:
+ - {name: checkout, uses: actions/checkout@v3, with: {submodules: recursive}}
+ - name: Download vars.sh
+ uses: actions/download-artifact@v3
+ with: {name: vars.sh, path: ./}
+ - {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: shared64-configure---------------------------------------------------
+ run: source .github/setenv.sh && c4_cfg_test shared64
+ - {name: shared64-build, run: source .github/setenv.sh && c4_build_target shared64}
+ - name: shared64-pack
+ run: source .github/setenv.sh && c4_package shared64 $GEN
+ - name: shared64-normalize
+ run: |
+ set -x
+ source vars.sh
+ mkdir -p assets
+ asset_src=`ls -1 ./build/shared64/*-${{matrix.config.sfxg}}`
+ asset_dst=./assets/${PROJ_PKG_NAME}${SRC_VERSION}-${{matrix.config.sfxp}}
+ [ ! -f $asset_src ] && exit 1
+ cp -fav $asset_src $asset_dst
+ - name: Save artifacts
+ uses: actions/upload-artifact@v3
+ with: {name: assets, path: assets}
+
+ #----------------------------------------------------------------------------
+ # create python packages
+ # adapted from https://github.com/pikepdf/pikepdf/blob/master/.github/workflows/build_wheels.yml
+
+ python_src:
+ if: |
+ (!contains(github.event.head_commit.message, 'skip all')) ||
+ (!contains(github.event.head_commit.message, 'skip release')) ||
+ contains(github.event.head_commit.message, 'only release')
+ name: python/src
+ runs-on: ubuntu-latest
+ steps:
+ # use fetch-depth to ensure all tags are fetched
+ - {name: checkout, uses: actions/checkout@v3, with: {submodules: recursive, fetch-depth: 0}}
+ - name: install python 3.9
+ uses: actions/setup-python@v4
+ with: { python-version: 3.9 }
+ - name: package python src packages
+ run: |
+ python --version
+ pip install -v -r requirements.txt
+ python setup.py sdist --formats=zip
+ - name: normalize src package names
+ run: |
+ sdist_orig=`find dist -type f -name 'rapidyaml-*.zip'`
+ [ ! -f $sdist_orig ] && exit 1
+ sdist=`echo $sdist_orig | sed 's:\.zip:-python_src.zip:'`
+ mv -fv $sdist_orig $sdist
+ - name: Save artifacts
+ uses: actions/upload-artifact@v3
+ with: {name: dist, path: dist}
+
+ python_wheels:
+ if: |
+ (!contains(github.event.head_commit.message, 'skip all')) ||
+ (!contains(github.event.head_commit.message, 'skip release')) ||
+ contains(github.event.head_commit.message, 'only release')
+ name: python/${{matrix.config.cibw_pyv}}/${{matrix.config.osname}}/${{matrix.config.cibw_arch}}
+ runs-on: ${{matrix.config.os}}
+ env:
+ CMAKE_FLAGS: "${{matrix.config.cmakeflags}} -DRYML_DEV=OFF -DRYML_BUILD_API=ON -DRYML_API_TESTS=OFF -DRYML_API_BENCHMARKS=OFF"
+ CIBW_BUILD: "cp${{matrix.config.cibw_pyv}}-${{matrix.config.cibw_platform}}"
+ CIBW_ARCHS: "${{matrix.config.cibw_arch}}"
+ strategy:
+ fail-fast: false
+ matrix:
+ config:
+ # the 3-digit versions NEED to be quoted to prevent the version being read as float. (!)
+ - {pythonv: '3.11', cibw_pyv: 311, cibw_arch: x86_64, cibw_platform: manylinux_x86_64, osname: linux, os: ubuntu-20.04}
+ - {pythonv: '3.11', cibw_pyv: 311, cibw_arch: i686 , cibw_platform: manylinux_i686 , osname: linux, os: ubuntu-20.04}
+ - {pythonv: '3.10', cibw_pyv: 310, cibw_arch: x86_64, cibw_platform: manylinux_x86_64, osname: linux, os: ubuntu-20.04}
+ - {pythonv: '3.10', cibw_pyv: 310, cibw_arch: i686 , cibw_platform: manylinux_i686 , osname: linux, os: ubuntu-20.04}
+ - {pythonv: 3.9 , cibw_pyv: 39 , cibw_arch: x86_64, cibw_platform: manylinux_x86_64, osname: linux, os: ubuntu-20.04}
+ - {pythonv: 3.9 , cibw_pyv: 39 , cibw_arch: i686 , cibw_platform: manylinux_i686 , osname: linux, os: ubuntu-20.04}
+ - {pythonv: 3.8 , cibw_pyv: 38 , cibw_arch: x86_64, cibw_platform: manylinux_x86_64, osname: linux, os: ubuntu-20.04}
+ - {pythonv: 3.8 , cibw_pyv: 38 , cibw_arch: i686 , cibw_platform: manylinux_i686 , osname: linux, os: ubuntu-20.04}
+ - {pythonv: 3.7 , cibw_pyv: 37 , cibw_arch: x86_64, cibw_platform: manylinux_x86_64, osname: linux, os: ubuntu-20.04}
+ - {pythonv: 3.7 , cibw_pyv: 37 , cibw_arch: i686 , cibw_platform: manylinux_i686 , osname: linux, os: ubuntu-20.04}
+ - {pythonv: 3.6 , cibw_pyv: 36 , cibw_arch: x86_64, cibw_platform: manylinux_x86_64, osname: linux, os: ubuntu-20.04}
+ - {pythonv: 3.6 , cibw_pyv: 36 , cibw_arch: i686 , cibw_platform: manylinux_i686 , osname: linux, os: ubuntu-20.04}
+ # the windows builds are disabled because they are causing problems and preventing the release.
+ # the problems are related to CMakeExtension forcing the use of Ninja
+ # which does not play well with the -G 'Visual Studio...' option used below.
+ # fixing this looks like it will be time-intensive.
+ #- {pythonv: '3.11', cibw_pyv: 311, cibw_arch: AMD64 , cibw_platform: win_amd64, osname: win , os: windows-2019, cxx: vs2019} #, cmakeflags: '-G "Visual Studio 16 2019" -A x64'}
+ #- {pythonv: '3.11', cibw_pyv: 311, cibw_arch: x86 , cibw_platform: win32 , osname: win , os: windows-2019, cxx: vs2019} #, cmakeflags: '-G "Visual Studio 16 2019" -A Win32'}
+ #- {pythonv: '3.10', cibw_pyv: 310, cibw_arch: AMD64 , cibw_platform: win_amd64, osname: win , os: windows-2019, cxx: vs2019} #, cmakeflags: '-G "Visual Studio 16 2019" -A x64'}
+ #- {pythonv: '3.10', cibw_pyv: 310, cibw_arch: x86 , cibw_platform: win32 , osname: win , os: windows-2019, cxx: vs2019} #, cmakeflags: '-G "Visual Studio 16 2019" -A Win32'}
+ #- {pythonv: 3.9 , cibw_pyv: 39 , cibw_arch: AMD64 , cibw_platform: win_amd64, osname: win , os: windows-2019, cxx: vs2019} #, cmakeflags: '-G "Visual Studio 16 2019" -A x64'}
+ #- {pythonv: 3.9 , cibw_pyv: 39 , cibw_arch: x86 , cibw_platform: win32 , osname: win , os: windows-2019, cxx: vs2019} #, cmakeflags: '-G "Visual Studio 16 2019" -A Win32'}
+ #- {pythonv: 3.8 , cibw_pyv: 38 , cibw_arch: AMD64 , cibw_platform: win_amd64, osname: win , os: windows-2019, cxx: vs2019} #, cmakeflags: '-G "Visual Studio 16 2019" -A x64'}
+ #- {pythonv: 3.8 , cibw_pyv: 38 , cibw_arch: x86 , cibw_platform: win32 , osname: win , os: windows-2019, cxx: vs2019} #, cmakeflags: '-G "Visual Studio 16 2019" -A Win32'}
+ - {pythonv: 3.7 , cibw_pyv: 37 , cibw_arch: AMD64 , cibw_platform: win_amd64, osname: win , os: windows-2019, cxx: vs2019} #, cmakeflags: '-G "Visual Studio 16 2019" -A x64'}
+ #- {pythonv: 3.7 , cibw_pyv: 37 , cibw_arch: x86 , cibw_platform: win32 , osname: win , os: windows-2019, cxx: vs2019} #, cmakeflags: '-G "Visual Studio 16 2019" -A Win32'}
+ - {pythonv: 3.6 , cibw_pyv: 36 , cibw_arch: AMD64 , cibw_platform: win_amd64, osname: win , os: windows-2019, cxx: vs2019} #, cmakeflags: '-G "Visual Studio 16 2019" -A x64'}
+ #- {pythonv: 3.6 , cibw_pyv: 36 , cibw_arch: x86 , cibw_platform: win32 , osname: win , os: windows-2019, cxx: vs2019} #, cmakeflags: '-G "Visual Studio 16 2019" -A Win32'}
+ ## macosx builds are generating a SIGSEGV when importing. (!)
+ ## https://github.com/biojppm/rapidyaml/actions/runs/3062528713/jobs/4943611397#step:7:269
+ #- {pythonv: '3.11', cibw_pyv: 311, cibw_arch: x86_64, cibw_platform: macosx_x86_64, osname: macos, os: macos-10.15}
+ #- {pythonv: '3.10', cibw_pyv: 310, cibw_arch: x86_64, cibw_platform: macosx_x86_64, osname: macos, os: macos-10.15}
+ #- {pythonv: 3.9 , cibw_pyv: 39 , cibw_arch: x86_64, cibw_platform: macosx_x86_64, osname: macos, os: macos-10.15}
+ #- {pythonv: 3.8 , cibw_pyv: 38 , cibw_arch: x86_64, cibw_platform: macosx_x86_64, osname: macos, os: macos-10.15}
+ #- {pythonv: 3.7 , cibw_pyv: 37 , cibw_arch: x86_64, cibw_platform: macosx_x86_64, osname: macos, os: macos-10.15}
+ #- {pythonv: 3.6 , cibw_pyv: 36 , cibw_arch: x86_64, cibw_platform: macosx_x86_64, osname: macos, os: macos-10.15}
+ steps:
+ # use fetch-depth to ensure all tags are fetched
+ - {name: checkout, uses: actions/checkout@v3, with: {submodules: recursive, fetch-depth: 0}}
+ - name: create wheel
+ uses: joerick/[email protected]
+ - name: rename wheelhouse -> dist
+ run: |
+ mv -fv wheelhouse dist
+ ls -lFhp dist/
+ - name: Save artifacts for publishing to PyPI
+ uses: actions/upload-artifact@v3
+ with: {name: dist, path: dist}
+ # run the tests
+ - name: install python ${{matrix.config.pythonv}}
+ uses: actions/setup-python@v4
+ with:
+ python-version: '${{matrix.config.pythonv}}'
+ - name: test with python ${{matrix.config.pythonv}}
+ run: |
+ set -x
+ echo "python ${{matrix.config.pythonv}} ${{matrix.config.py_arch}} ${{matrix.config.cibw_arch}}"
+ # skip 32 bit tests, as Python 32 bits are not available in ubuntu
+ arch="${{matrix.config.cibw_arch}}"
+ if [ "$arch" == "x86" ] || [ "$arch" == "i686" ] ; then
+ exit 0
+ fi
+ python --version
+ python -c 'import sys ; import struct ; print("python:", sys.version, struct.calcsize("P") * 8, "bits")'
+ pip --version
+ pip install -v -r requirements.txt
+ pip install -v -r api/python/requirements.txt
+ for whl in dist/* ; do
+ pip install -v $whl
+ pip show -f rapidyaml
+ python -c 'import ryml ; print("ryml", ryml.version, ryml.version_tuple)'
+ python -c 'import ryml ; tree = ryml.parse_in_arena(b"{foo: bar}") ; assert tree.key(1) == b"foo" ; assert tree.val(1) == b"bar" ; print(str(tree.key(1), "utf8")) ; print(str(tree.val(1), "utf8"))'
+ python -m pytest -vvv api/python/tests
+ pip uninstall -y -v rapidyaml
+ done
+
+
+ #----------------------------------------------------------------------------
+ release:
+ if: |
+ (!contains(github.event.head_commit.message, 'skip all')) ||
+ (!contains(github.event.head_commit.message, 'skip release')) ||
+ contains(github.event.head_commit.message, 'only release')
+ runs-on: ubuntu-latest
+ needs:
+ - src
+ - cpp
+ - python_src
+ - python_wheels
+ steps:
+ - {name: checkout, uses: actions/checkout@v3, with: {submodules: recursive}}
+ - name: Gather artifacts - ./assets
+ uses: actions/download-artifact@v3
+ with: {name: assets, path: assets}
+ - name: Gather artifacts - ./dist
+ uses: actions/download-artifact@v3
+ with: {name: dist, path: dist}
+ - name: Verify existing artifacts
+ run: |
+ ls -lFhp assets/
+ ls -lFhp dist/
+ #
+ # Github
+ - name: Restore vars.sh
+ if: contains(github.ref, 'tags/v')
+ uses: actions/download-artifact@v3
+ with: {name: vars.sh, path: ./}
+ - name: Save vars for following steps
+ if: contains(github.ref, 'tags/v')
+ id: vars
+ run: |
+ source vars.sh
+ version_body=${{github.workspace}}/changelog/$SRC_VERSION.md
+ if [ ! -f $version_body ] ; then
+ echo "version body file was not found: $version_body"
+ exit 1
+ fi
+ echo "VERSION=$SRC_VERSION >> $GITHUB_OUTPUT"
+ echo "VERSION_BODY=$version_body >> $GITHUB_OUTPUT"
+ - name: Move Python packages to assets folder
+ if: contains(github.ref, 'tags/v')
+ run: mv -fv dist/*src.zip assets/.
+ - name: Create Github Release
+ if: contains(github.ref, 'tags/v')
+ id: create_release
+ uses: actions/create-release@v1
+ env: { GITHUB_TOKEN: "${{secrets.GITHUB_TOKEN}}" }
+ with:
+ tag_name: ${{github.ref}}
+ release_name: Release ${{steps.vars.outputs.VERSION}}
+ body_path: ${{steps.vars.outputs.VERSION_BODY}}
+ draft: true
+ prerelease: ${{contains(github.ref, 'rc')}}
+ - name: Upload assets to Github Release
+ if: contains(github.ref, 'tags/v')
+ uses: dwenegar/upload-release-assets@v1
+ env: { GITHUB_TOKEN: "${{secrets.GITHUB_TOKEN}}" }
+ with:
+ release_id: ${{steps.create_release.outputs.id}}
+ assets_path: ./assets/
+ #
+ # PyPI (test)
+ - name: Publish python packages to test PyPI
+ uses: pypa/[email protected]
+ with:
+ repository_url: https://test.pypi.org/legacy/
+ user: __token__
+ password: ${{secrets.PYPI_TOKEN_TEST}}
+ verbose: true
+ skip_existing: true
+ #
+ # PyPI (production)
+ - name: Publish python packages to production PyPI
+ if: contains(github.ref, 'tags/v')
+ uses: pypa/[email protected]
+ with:
+ user: __token__
+ password: ${{secrets.PYPI_TOKEN}}
+ verbose: true
diff --git a/thirdparty/ryml/.github/workflows/samples.yml b/thirdparty/ryml/.github/workflows/samples.yml
new file mode 100644
index 000000000..d4ad65494
--- /dev/null
+++ b/thirdparty/ryml/.github/workflows/samples.yml
@@ -0,0 +1,60 @@
+name: samples
+
+defaults:
+ run:
+ # Use a bash shell so we can use the same syntax for environment variable
+ # access regardless of the host operating system
+ shell: bash -e -x {0}
+
+on:
+ # https://github.community/t/how-to-trigger-an-action-on-push-or-pull-request-but-not-both/16662
+ workflow_dispatch:
+ 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: # 4
+
+jobs:
+
+ #----------------------------------------------------------------------------
+ samples:
+ if: |
+ (!contains(github.event.head_commit.message, 'skip all')) ||
+ (!contains(github.event.head_commit.message, 'skip samples')) ||
+ contains(github.event.head_commit.message, 'only samples')
+ continue-on-error: true
+ runs-on: ${{matrix.os}}
+ strategy:
+ fail-fast: false
+ matrix:
+ include:
+ - {bt: Debug , os: ubuntu-20.04}
+ - {bt: Release, os: ubuntu-20.04}
+ - {bt: Debug , os: windows-2019}
+ - {bt: Release, os: windows-2019}
+ - {bt: Debug , os: macos-latest}
+ - {bt: Release, os: macos-latest}
+ 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}}",
+ CMANY: ON, RYMLSHA: "${{github.event.pull_request.head.sha}}" }
+ steps:
+ - {name: checkout, uses: actions/checkout@v3, with: {submodules: recursive, fetch-depth: 0 } } # use fetch-depth to ensure all tags are fetched
+ - {name: python3, uses: actions/setup-python@v4, with: {python-version: 3.7}}
+ - {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: singleheader, run: cd samples/singleheader && ./run.sh $BT }
+ - {name: singleheaderlib-static, run: cd samples/singleheaderlib && ./run_static.sh $BT }
+ - {name: singleheaderlib-shared, run: cd samples/singleheaderlib && ./run_shared.sh $BT }
+ - {name: add_subdirectory, run: cd samples/add_subdirectory && ./run.sh $BT }
+ - {name: find_package, run: cd samples/find_package && ./run.sh $BT }
+ - {name: custom_c4core, run: cd samples/custom_c4core && ./run.sh $BT }
+ - {name: fetch_content, run: cd samples/fetch_content && ./run.sh $BT $RYMLSHA }
diff --git a/thirdparty/ryml/.github/workflows/windows.yml b/thirdparty/ryml/.github/workflows/windows.yml
new file mode 100644
index 000000000..f39c6e19d
--- /dev/null
+++ b/thirdparty/ryml/.github/workflows/windows.yml
@@ -0,0 +1,130 @@
+name: windows
+
+defaults:
+ run:
+ # Use a bash shell so we can use the same syntax for environment variable
+ # access regardless of the host operating system
+ shell: bash -e -x {0}
+
+on:
+ # https://github.community/t/how-to-trigger-an-action-on-push-or-pull-request-but-not-both/16662
+ workflow_dispatch:
+ 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: # 4
+
+
+jobs:
+ vs:
+ name: ${{matrix.cxx}}/c++${{matrix.std}}/${{matrix.bt}}
+ if: |
+ (!contains(github.event.head_commit.message, 'skip all')) ||
+ (!contains(github.event.head_commit.message, 'skip windows')) ||
+ contains(github.event.head_commit.message, 'only windows')
+ continue-on-error: true
+ runs-on: ${{matrix.os}}
+ strategy:
+ fail-fast: false
+ matrix:
+ include:
+ # vs2017 is only availble in windows-2016
+ #- {std: 11, cxx: vs2017, bt: Debug , os: windows-2016, bitlinks: shared64 static32}
+ #- {std: 11, cxx: vs2017, bt: Release, os: windows-2016, bitlinks: shared64 static32}
+ #- {std: 14, cxx: vs2017, bt: Debug , os: windows-2016, bitlinks: shared64 static32}
+ #- {std: 14, cxx: vs2017, bt: Release, os: windows-2016, bitlinks: shared64 static32}
+ #
+ - {std: 11, cxx: vs2019, bt: Debug , os: windows-2019, bitlinks: shared64 static32}
+ - {std: 11, cxx: vs2019, bt: Release, os: windows-2019, bitlinks: shared64 static32}
+ - {std: 17, cxx: vs2019, bt: Debug , os: windows-2019, bitlinks: shared64 static32}
+ - {std: 17, cxx: vs2019, bt: Release, os: windows-2019, bitlinks: shared64 static32}
+ #
+ - {std: 11, cxx: vs2022, bt: Debug , os: windows-2022, bitlinks: shared64 static32}
+ - {std: 11, cxx: vs2022, bt: Release, os: windows-2022, bitlinks: shared64 static32}
+ - {std: 17, cxx: vs2022, bt: Debug , os: windows-2022, bitlinks: shared64 static32}
+ - {std: 17, cxx: vs2022, bt: Release, os: windows-2022, bitlinks: shared64 static32}
+ - {std: 20, cxx: vs2022, bt: Debug , os: windows-2022, bitlinks: shared64 static32}
+ - {std: 20, cxx: vs2022, bt: Release, os: windows-2022, bitlinks: shared64 static32}
+ 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}}"}
+ steps:
+ - {name: checkout, uses: actions/checkout@v3, with: {submodules: recursive}}
+ - {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: shared64-configure---------------------------------------------------
+ run: source .github/setenv.sh && c4_cfg_test shared64
+ - {name: shared64-build, run: source .github/setenv.sh && c4_build_test shared64}
+ - {name: shared64-run, run: source .github/setenv.sh && c4_run_test shared64}
+ - {name: shared64-pack, run: source .github/setenv.sh && c4_package shared64}
+ - 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_run_test static64}
+ - {name: static64-pack, run: source .github/setenv.sh && c4_package static64}
+ - name: shared32-configure---------------------------------------------------
+ run: source .github/setenv.sh && c4_cfg_test shared32
+ - {name: shared32-build, run: source .github/setenv.sh && c4_build_test shared32}
+ - {name: shared32-run, run: source .github/setenv.sh && c4_run_test shared32}
+ - {name: shared32-pack, run: source .github/setenv.sh && c4_package shared32}
+ - 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_run_test static32}
+ - {name: static32-pack, run: source .github/setenv.sh && c4_package static32}
+
+# TODO:
+# mingw:
+# name: mingw/${{matrix.platform}}/c++${{matrix.std}}/${{matrix.bt}}
+# if: |
+# (!contains(github.event.head_commit.message, 'skip all')) ||
+# (!contains(github.event.head_commit.message, 'skip windows')) ||
+# contains(github.event.head_commit.message, 'only windows')
+# continue-on-error: true
+# runs-on: ${{matrix.os}}
+# strategy:
+# fail-fast: false
+# matrix:
+# include:
+# - {std: 11, platform: x86, cxx: i686-w64-mingw32-g++, bt: Debug , os: windows-latest, bitlinks: shared32 static32}
+# - {std: 11, platform: x64, cxx: x86_64-w64-mingw32-g++, bt: Debug , os: windows-latest, bitlinks: shared64 static64}
+# - {std: 11, platform: x86, cxx: i686-w64-mingw32-g++, bt: Release, os: windows-latest, bitlinks: shared32 static32}
+# - {std: 11, platform: x64, cxx: x86_64-w64-mingw32-g++, bt: Release, os: windows-latest, bitlinks: shared64 static64}
+# - {std: 17, platform: x86, cxx: i686-w64-mingw32-g++, bt: Debug , os: windows-latest, bitlinks: shared32 static32}
+# - {std: 17, platform: x64, cxx: x86_64-w64-mingw32-g++, bt: Debug , os: windows-latest, bitlinks: shared64 static64}
+# - {std: 17, platform: x86, cxx: i686-w64-mingw32-g++, bt: Release, os: windows-latest, bitlinks: shared32 static32}
+# - {std: 17, platform: x64, cxx: x86_64-w64-mingw32-g++, bt: Release, os: windows-latest, bitlinks: shared64 static64}
+# 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}}"}
+# steps:
+# - {name: checkout, uses: actions/checkout@v3, with: {submodules: recursive}}
+# - {name: install requirements, run: source .github/reqs.sh && c4_install_test_requirements $OS}
+# - name: install mingw
+# uses: egor-tensin/setup-mingw@v2
+# with:
+# platform: "${{matrix.platform}}"
+# - name: shared64-configure---------------------------------------------------
+# run: source .github/setenv.sh && c4_cfg_test shared64
+# - {name: shared64-build, run: source .github/setenv.sh && c4_build_test shared64}
+# - {name: shared64-run, run: source .github/setenv.sh && c4_run_test shared64}
+# - {name: shared64-pack, run: source .github/setenv.sh && c4_package shared64}
+# - 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_run_test static64}
+# - {name: static64-pack, run: source .github/setenv.sh && c4_package static64}
+# - name: shared32-configure---------------------------------------------------
+# run: source .github/setenv.sh && c4_cfg_test shared32
+# - {name: shared32-build, run: source .github/setenv.sh && c4_build_test shared32}
+# - {name: shared32-run, run: source .github/setenv.sh && c4_run_test shared32}
+# - {name: shared32-pack, run: source .github/setenv.sh && c4_package shared32}
+# - 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_run_test static32}
+# - {name: static32-pack, run: source .github/setenv.sh && c4_package static32}