aboutsummaryrefslogtreecommitdiff
path: root/thirdparty/ryml/.github/workflows
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2026-02-23 11:19:52 +0100
committerGitHub Enterprise <[email protected]>2026-02-23 11:19:52 +0100
commit9aac0fd369b87e965fb34b5168646387de7ea1cd (patch)
tree367a820685a829adbab31cd1374b1af2cece4b7e /thirdparty/ryml/.github/workflows
parentchanged command names and descriptions to use class members instead of string... (diff)
downloadzen-9aac0fd369b87e965fb34b5168646387de7ea1cd.tar.xz
zen-9aac0fd369b87e965fb34b5168646387de7ea1cd.zip
implement yaml generation (#774)
this implements a yaml generation strategy similar to the JSON generation where we just build a string instead of building a ryml tree. This also removes the dependency on ryml for reduced binary/build times.
Diffstat (limited to 'thirdparty/ryml/.github/workflows')
-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
13 files changed, 0 insertions, 1745 deletions
diff --git a/thirdparty/ryml/.github/workflows/benchmarks.yml b/thirdparty/ryml/.github/workflows/benchmarks.yml
deleted file mode 100644
index 61654643f..000000000
--- a/thirdparty/ryml/.github/workflows/benchmarks.yml
+++ /dev/null
@@ -1,147 +0,0 @@
-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
deleted file mode 100644
index f0b7ad009..000000000
--- a/thirdparty/ryml/.github/workflows/clang.yml
+++ /dev/null
@@ -1,262 +0,0 @@
-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
deleted file mode 100644
index 5c9a7d872..000000000
--- a/thirdparty/ryml/.github/workflows/clang_tidy.yml
+++ /dev/null
@@ -1,72 +0,0 @@
-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
deleted file mode 100644
index 3ad8a5819..000000000
--- a/thirdparty/ryml/.github/workflows/codeql.yml
+++ /dev/null
@@ -1,44 +0,0 @@
-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
deleted file mode 100644
index 52da02c56..000000000
--- a/thirdparty/ryml/.github/workflows/coverage.yml
+++ /dev/null
@@ -1,94 +0,0 @@
-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
deleted file mode 100644
index bc920d7ca..000000000
--- a/thirdparty/ryml/.github/workflows/emscripten.yml
+++ /dev/null
@@ -1,71 +0,0 @@
-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
deleted file mode 100644
index fd0337ed7..000000000
--- a/thirdparty/ryml/.github/workflows/gcc.yml
+++ /dev/null
@@ -1,168 +0,0 @@
-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
deleted file mode 100644
index b8b74c682..000000000
--- a/thirdparty/ryml/.github/workflows/install.yml
+++ /dev/null
@@ -1,105 +0,0 @@
-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
deleted file mode 100644
index a9fb97ffb..000000000
--- a/thirdparty/ryml/.github/workflows/macosx.yml
+++ /dev/null
@@ -1,103 +0,0 @@
-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
deleted file mode 100644
index 8306b54ae..000000000
--- a/thirdparty/ryml/.github/workflows/rarearchs.yml
+++ /dev/null
@@ -1,123 +0,0 @@
-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
deleted file mode 100644
index 3797359b8..000000000
--- a/thirdparty/ryml/.github/workflows/release.yml
+++ /dev/null
@@ -1,366 +0,0 @@
-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
deleted file mode 100644
index d4ad65494..000000000
--- a/thirdparty/ryml/.github/workflows/samples.yml
+++ /dev/null
@@ -1,60 +0,0 @@
-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
deleted file mode 100644
index f39c6e19d..000000000
--- a/thirdparty/ryml/.github/workflows/windows.yml
+++ /dev/null
@@ -1,130 +0,0 @@
-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}