2020-05-12 20:26:17 +02:00
|
|
|
name: Ubuntu
|
2019-09-02 21:35:53 +02:00
|
|
|
|
2021-03-28 14:59:42 +02:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- develop
|
|
|
|
- master
|
2021-08-15 22:49:31 +02:00
|
|
|
- release/*
|
2021-03-28 14:59:42 +02:00
|
|
|
pull_request:
|
2022-03-06 13:54:00 +01:00
|
|
|
workflow_dispatch:
|
2019-09-02 21:35:53 +02:00
|
|
|
|
2022-07-28 21:51:32 +02:00
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
2019-09-02 21:35:53 +02:00
|
|
|
jobs:
|
2021-03-24 07:15:18 +01:00
|
|
|
ci_test_clang:
|
|
|
|
runs-on: ubuntu-latest
|
2022-06-12 14:31:07 +02:00
|
|
|
container: ghcr.io/nlohmann/json-ci:v2.4.0
|
2020-12-29 20:21:43 +01:00
|
|
|
steps:
|
2022-04-06 15:14:14 +02:00
|
|
|
- uses: actions/checkout@v3
|
2021-03-24 07:15:18 +01:00
|
|
|
- name: cmake
|
|
|
|
run: cmake -S . -B build -DJSON_CI=On
|
|
|
|
- name: build
|
|
|
|
run: cmake --build build --target ci_test_clang
|
2020-12-29 20:30:50 +01:00
|
|
|
|
2021-03-24 07:15:18 +01:00
|
|
|
ci_test_gcc:
|
2020-12-29 20:30:50 +01:00
|
|
|
runs-on: ubuntu-latest
|
2022-06-12 14:31:07 +02:00
|
|
|
container: ghcr.io/nlohmann/json-ci:v2.4.0
|
2021-03-24 07:15:18 +01:00
|
|
|
steps:
|
2022-04-06 15:14:14 +02:00
|
|
|
- uses: actions/checkout@v3
|
2021-03-24 07:15:18 +01:00
|
|
|
- name: cmake
|
|
|
|
run: cmake -S . -B build -DJSON_CI=On
|
|
|
|
- name: build
|
|
|
|
run: cmake --build build --target ci_test_gcc
|
2020-12-29 20:30:50 +01:00
|
|
|
|
2021-03-27 14:44:39 +01:00
|
|
|
ci_static_analysis:
|
2021-03-24 07:15:18 +01:00
|
|
|
runs-on: ubuntu-latest
|
2022-06-12 14:31:07 +02:00
|
|
|
container: ghcr.io/nlohmann/json-ci:v2.4.0
|
2021-03-27 14:44:39 +01:00
|
|
|
strategy:
|
|
|
|
matrix:
|
2021-04-24 13:50:30 +02:00
|
|
|
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]
|
2021-03-24 07:15:18 +01:00
|
|
|
steps:
|
2022-04-06 15:14:14 +02:00
|
|
|
- uses: actions/checkout@v3
|
2021-03-24 07:15:18 +01:00
|
|
|
- name: cmake
|
|
|
|
run: cmake -S . -B build -DJSON_CI=On
|
|
|
|
- name: build
|
2021-03-27 14:44:39 +01:00
|
|
|
run: cmake --build build --target ${{ matrix.target }}
|
2021-03-24 07:15:18 +01:00
|
|
|
|
2022-06-14 08:54:12 +02:00
|
|
|
ci_test_single_header:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
container: ghcr.io/nlohmann/json-ci:v2.4.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_single_header
|
|
|
|
|
2021-03-27 14:44:39 +01:00
|
|
|
ci_cmake_options:
|
2021-03-24 07:15:18 +01:00
|
|
|
runs-on: ubuntu-latest
|
2022-06-12 14:31:07 +02:00
|
|
|
container: ghcr.io/nlohmann/json-ci:v2.4.0
|
2021-03-27 14:44:39 +01:00
|
|
|
strategy:
|
|
|
|
matrix:
|
2022-08-01 22:42:35 +02:00
|
|
|
target: [ci_test_diagnostics, ci_test_noexceptions, ci_test_noimplicitconversions, ci_test_legacycomparison, ci_test_noglobaludls]
|
2021-03-24 07:15:18 +01:00
|
|
|
steps:
|
2022-04-06 15:14:14 +02:00
|
|
|
- uses: actions/checkout@v3
|
2021-03-24 07:15:18 +01:00
|
|
|
- name: cmake
|
|
|
|
run: cmake -S . -B build -DJSON_CI=On
|
|
|
|
- name: build
|
2021-03-27 14:44:39 +01:00
|
|
|
run: cmake --build build --target ${{ matrix.target }}
|
2021-03-24 07:15:18 +01:00
|
|
|
|
|
|
|
ci_test_coverage:
|
|
|
|
runs-on: ubuntu-latest
|
2022-06-12 14:31:07 +02:00
|
|
|
container: ghcr.io/nlohmann/json-ci:v2.4.0
|
2021-03-24 07:15:18 +01:00
|
|
|
steps:
|
2022-04-06 15:14:14 +02:00
|
|
|
- uses: actions/checkout@v3
|
2021-03-24 07:15:18 +01:00
|
|
|
- name: cmake
|
|
|
|
run: cmake -S . -B build -DJSON_CI=On
|
|
|
|
- name: build
|
|
|
|
run: cmake --build build --target ci_test_coverage
|
|
|
|
- name: archive coverage report
|
2022-04-06 15:14:14 +02:00
|
|
|
uses: actions/upload-artifact@v3
|
2021-03-24 07:15:18 +01:00
|
|
|
with:
|
|
|
|
name: code-coverage-report
|
2022-08-03 09:15:16 +02:00
|
|
|
path: ${{ github.workspace }}/build/html
|
2021-03-24 07:15:18 +01:00
|
|
|
- name: Coveralls
|
|
|
|
uses: coverallsapp/github-action@master
|
|
|
|
with:
|
|
|
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
2022-08-03 09:15:16 +02:00
|
|
|
path-to-lcov: ${{ github.workspace }}/build/json.info.filtered.noexcept
|
2021-03-27 14:44:39 +01:00
|
|
|
|
|
|
|
ci_test_compilers:
|
|
|
|
runs-on: ubuntu-latest
|
2022-06-12 14:31:07 +02:00
|
|
|
container: ghcr.io/nlohmann/json-ci:v2.4.0
|
2021-03-27 14:44:39 +01:00
|
|
|
strategy:
|
|
|
|
matrix:
|
2022-06-12 14:31:07 +02:00
|
|
|
compiler: [g++-4.8, g++-4.9, g++-5, g++-6, g++-7, g++-8, g++-9, g++-10, g++-11, 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]
|
2021-03-27 14:44:39 +01:00
|
|
|
steps:
|
2022-04-06 15:14:14 +02:00
|
|
|
- uses: actions/checkout@v3
|
2021-03-27 14:44:39 +01:00
|
|
|
- name: cmake
|
|
|
|
run: cmake -S . -B build -DJSON_CI=On
|
|
|
|
- name: build
|
2021-03-28 14:48:58 +02:00
|
|
|
run: cmake --build build --target ci_test_compiler_${{ matrix.compiler }}
|
|
|
|
|
|
|
|
ci_test_standards:
|
|
|
|
runs-on: ubuntu-latest
|
2022-06-12 14:31:07 +02:00
|
|
|
container: ghcr.io/nlohmann/json-ci:v2.4.0
|
2021-03-28 14:48:58 +02:00
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
standard: [11, 14, 17, 20]
|
|
|
|
compiler: [gcc, clang]
|
|
|
|
steps:
|
2022-04-06 15:14:14 +02:00
|
|
|
- uses: actions/checkout@v3
|
2021-03-28 14:48:58 +02:00
|
|
|
- name: cmake
|
|
|
|
run: cmake -S . -B build -DJSON_CI=On
|
|
|
|
- name: build
|
2021-03-28 15:30:37 +02:00
|
|
|
run: cmake --build build --target ci_test_${{ matrix.compiler }}_cxx${{ matrix.standard }}
|
2021-12-30 13:40:15 +01:00
|
|
|
|
|
|
|
ci_cuda_example:
|
|
|
|
runs-on: ubuntu-latest
|
2022-06-12 14:31:07 +02:00
|
|
|
container: ghcr.io/nlohmann/json-ci:v2.4.0
|
2021-12-30 13:40:15 +01:00
|
|
|
steps:
|
2022-04-06 15:14:14 +02:00
|
|
|
- uses: actions/checkout@v3
|
2021-12-30 13:40:15 +01:00
|
|
|
- name: cmake
|
|
|
|
run: cmake -S . -B build -DJSON_CI=On
|
|
|
|
- name: build
|
|
|
|
run: cmake --build build --target ci_cuda_example
|
2022-05-01 22:46:45 +02:00
|
|
|
|
|
|
|
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
|
2022-07-20 12:38:07 +02:00
|
|
|
ci_reuse_compliance:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: actions/setup-python@v3
|
|
|
|
- name: install REUSE tool
|
|
|
|
run: python -m pip install reuse
|
|
|
|
- name: REUSE lint
|
|
|
|
run: reuse lint
|
2022-07-29 14:28:37 +02:00
|
|
|
|
|
|
|
ci_test_documentation:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: cmake
|
|
|
|
run: cmake -S . -B build -DJSON_CI=On
|
|
|
|
- name: build
|
|
|
|
run: cmake --build build --target ci_test_documentation
|