mirror of
https://github.com/nlohmann/json.git
synced 2024-07-15 10:55:45 +02:00
* ⬆️ Doctest 2.4.7 * 👷 add CI step for ICPC * 👷 add CI step for ICPC * 👷 add CI step for ICPC * ⬇️ downgrade to Doctest 2.4.6 * 👷 add CI step for ICPC * 👷 add CI step for ICPC * 👷 add CI step for ICPC * 👷 add CI step for ICPC * 👷 add CI step for ICPC * 🔇 suppress warning #2196: routine is both "inline" and "noinline" * Re-enable <filesystem> detection on ICPC * Limit regression test for #3070 to Clang and GCC >=8.4 * Disable deprecation warnings on ICPC * Disable regression test for #1647 on ICPC (C++20) * Fix compilation failure of regression test for #3077 on ICPC * Disable wstring unit test on ICPC Fixes: error 913: invalid multibyte character sequence * Add ICPC to README Co-authored-by: Niels Lohmann <mail@nlohmann.me>
127 lines
3.9 KiB
YAML
127 lines
3.9 KiB
YAML
name: Ubuntu
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- develop
|
|
- master
|
|
- release/*
|
|
pull_request:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
ci_test_clang:
|
|
runs-on: ubuntu-latest
|
|
container: ghcr.io/nlohmann/json-ci:v2.3.0
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: cmake
|
|
run: cmake -S . -B build -DJSON_CI=On
|
|
- name: build
|
|
run: cmake --build build --target ci_test_clang
|
|
|
|
ci_test_gcc:
|
|
runs-on: ubuntu-latest
|
|
container: ghcr.io/nlohmann/json-ci:v2.3.0
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: cmake
|
|
run: cmake -S . -B build -DJSON_CI=On
|
|
- name: build
|
|
run: cmake --build build --target ci_test_gcc
|
|
|
|
ci_static_analysis:
|
|
runs-on: ubuntu-latest
|
|
container: ghcr.io/nlohmann/json-ci:v2.3.0
|
|
strategy:
|
|
matrix:
|
|
target: [ci_clang_tidy, ci_cppcheck, ci_test_valgrind, ci_test_clang_sanitizer, ci_test_amalgamation, ci_clang_analyze, ci_cpplint, ci_cmake_flags, ci_single_binaries, ci_reproducible_tests, ci_non_git_tests, ci_offline_testdata, ci_infer]
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: cmake
|
|
run: cmake -S . -B build -DJSON_CI=On
|
|
- name: build
|
|
run: cmake --build build --target ${{ matrix.target }}
|
|
|
|
ci_cmake_options:
|
|
runs-on: ubuntu-latest
|
|
container: ghcr.io/nlohmann/json-ci:v2.3.0
|
|
strategy:
|
|
matrix:
|
|
target: [ci_test_diagnostics, ci_test_noexceptions, ci_test_noimplicitconversions]
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: cmake
|
|
run: cmake -S . -B build -DJSON_CI=On
|
|
- name: build
|
|
run: cmake --build build --target ${{ matrix.target }}
|
|
|
|
ci_test_coverage:
|
|
runs-on: ubuntu-latest
|
|
container: ghcr.io/nlohmann/json-ci:v2.3.0
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: cmake
|
|
run: cmake -S . -B build -DJSON_CI=On
|
|
- name: build
|
|
run: cmake --build build --target ci_test_coverage
|
|
- name: archive coverage report
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: code-coverage-report
|
|
path: /__w/json/json/build/html
|
|
- name: Coveralls
|
|
uses: coverallsapp/github-action@master
|
|
with:
|
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
path-to-lcov: /__w/json/json/build/json.info.filtered.noexcept
|
|
|
|
ci_test_compilers:
|
|
runs-on: ubuntu-latest
|
|
container: ghcr.io/nlohmann/json-ci:v2.3.0
|
|
strategy:
|
|
matrix:
|
|
compiler: [g++-4.8, g++-4.9, g++-5, g++-6, g++-7, g++-8, g++-9, g++-10, clang++-3.5, clang++-3.6, clang++-3.7, clang++-3.8, clang++-3.9, clang++-4.0, clang++-5.0, clang++-6.0, clang++-7, clang++-8, clang++-9, clang++-10, clang++-11, clang++-12, clang++-13, clang++-14]
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: cmake
|
|
run: cmake -S . -B build -DJSON_CI=On
|
|
- name: build
|
|
run: cmake --build build --target ci_test_compiler_${{ matrix.compiler }}
|
|
|
|
ci_test_standards:
|
|
runs-on: ubuntu-latest
|
|
container: ghcr.io/nlohmann/json-ci:v2.3.0
|
|
strategy:
|
|
matrix:
|
|
standard: [11, 14, 17, 20]
|
|
compiler: [gcc, clang]
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: cmake
|
|
run: cmake -S . -B build -DJSON_CI=On
|
|
- name: build
|
|
run: cmake --build build --target ci_test_${{ matrix.compiler }}_cxx${{ matrix.standard }}
|
|
|
|
ci_cuda_example:
|
|
runs-on: ubuntu-latest
|
|
container: ghcr.io/nlohmann/json-ci:v2.3.0
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: cmake
|
|
run: cmake -S . -B build -DJSON_CI=On
|
|
- name: build
|
|
run: cmake --build build --target ci_cuda_example
|
|
|
|
ci_icpc:
|
|
runs-on: ubuntu-latest
|
|
container: ghcr.io/nlohmann/json-ci:v2.2.0
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: cmake
|
|
run: cmake -S . -B build -DJSON_CI=On
|
|
- name: build
|
|
run: |
|
|
. /opt/intel/oneapi/setvars.sh
|
|
cmake --build build --target ci_icpc
|