mirror of
https://github.com/nlohmann/json
synced 2024-12-02 00:20:06 +00:00
6f551930e5
* ⚗️ move CI targets to CMake * ♻️ add target for cpplint * ♻️ add target for self-contained binaries * ♻️ add targets for iwyu and infer * 🔊 add version output * ♻️ add target for oclint * 🚨 fix warnings * ♻️ rename targets * ♻️ use iwyu properly * 🚨 fix warnings * ♻️ use iwyu properly * ♻️ add target for benchmarks * ♻️ add target for CMake flags * 👷 use GitHub Actions * ⚗️ try to install Clang 11 * ⚗️ try to install GCC 11 * ⚗️ try to install Clang 11 * ⚗️ try to install GCC 11 * ⚗️ add clang analyze target * 🔥 remove Google Benchmark * ⬆️ Google Benchmark 1.5.2 * 🔥 use fetchcontent * 🐧 add target to download a Linux version of CMake * 🔨 fix dependency * 🚨 fix includes * 🚨 fix comment * 🔧 adjust flags for GCC 11.0.0 20210110 (experimental) * 🐳 user Docker image to run CI * 🔧 add target for Valgrind * 👷 add target for Valgrind tests * ⚗️ add Dart * ⏪ remove Dart * ⚗️ do not call ctest in test subdirectory * ⚗️ download test data explicitly * ⚗️ only execute Valgrind tests * ⚗️ fix labels * 🔥 remove unneeded jobs * 🔨 cleanup * 🐛 fix OCLint call * ✅ add targets for offline and git-independent tests * ✅ add targets for C++ language versions and reproducible tests * 🔨 clean up * 👷 add CI steps for cppcheck and cpplint * 🚨 fix warnings from Clang-Tidy * 👷 add CI steps for Clang-Tidy * 🚨 fix warnings * 🔧 select proper binary * 🚨 fix warnings * 🚨 suppress some unhelpful warnings * 🚨 fix warnings * 🎨 fix format * 🚨 fix warnings * 👷 add CI steps for Sanitizers * 🚨 fix warnings * ⚡ add optimization to sanitizer build * 🚨 fix warnings * 🚨 add missing header * 🚨 fix warnings * 👷 add CI step for coverage * 👷 add CI steps for disabled exceptions and implicit conversions * 🚨 fix warnings * 👷 add CI steps for checking indentation * 🐛 fix variable use * 💚 fix build * ➖ remove CircleCI * 👷 add CI step for diagnostics * 🚨 fix warning * 🔥 clean Travis
180 lines
4.8 KiB
YAML
180 lines
4.8 KiB
YAML
name: Ubuntu
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
ci_test_clang_cxx20:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: install_clang
|
|
run: |
|
|
sudo apt update
|
|
sudo apt install clang-10 ninja-build
|
|
shell: bash
|
|
- name: cmake
|
|
run: cmake -S . -B build -DJSON_CI=On
|
|
- name: build
|
|
run: cmake --build build --target ci_test_clang_cxx20
|
|
|
|
ci_clang_analyze:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: install_ninja
|
|
run: |
|
|
sudo apt update
|
|
sudo apt install ninja-build
|
|
shell: bash
|
|
- name: install_clang
|
|
run: |
|
|
wget https://apt.llvm.org/llvm.sh
|
|
chmod +x llvm.sh
|
|
sudo ./llvm.sh 11
|
|
sudo apt-get install clang-tools-11
|
|
shell: bash
|
|
- name: cmake
|
|
run: cmake -S . -B build -DJSON_CI=On
|
|
- name: build
|
|
run: cmake --build build --target ci_clang_analyze
|
|
|
|
ci_test_clang:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: install_ninja
|
|
run: |
|
|
sudo apt update
|
|
sudo apt install ninja-build
|
|
shell: bash
|
|
- name: install_clang
|
|
run: |
|
|
wget https://apt.llvm.org/llvm.sh
|
|
chmod +x llvm.sh
|
|
sudo ./llvm.sh 11
|
|
sudo apt-get install clang-tools-11
|
|
shell: bash
|
|
- 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: nlohmann/json-ci:latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: cmake
|
|
run: cmake -S . -B build -DJSON_CI=On
|
|
- name: build
|
|
run: cmake --build build --target ci_test_gcc
|
|
|
|
ci_test_valgrind:
|
|
runs-on: ubuntu-latest
|
|
container: nlohmann/json-ci:latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: cmake
|
|
run: cmake -S . -B build -DJSON_CI=On
|
|
- name: build
|
|
run: cmake --build build --target ci_test_valgrind
|
|
|
|
ci_cppcheck:
|
|
runs-on: ubuntu-latest
|
|
container: nlohmann/json-ci:latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: cmake
|
|
run: cmake -S . -B build -DJSON_CI=On
|
|
- name: build
|
|
run: cmake --build build --target ci_cppcheck
|
|
|
|
ci_cpplint:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: cmake
|
|
run: cmake -S . -B build -DJSON_CI=On
|
|
- name: build
|
|
run: cmake --build build --target ci_cpplint
|
|
|
|
ci_clang_tidy:
|
|
runs-on: ubuntu-latest
|
|
container: nlohmann/json-ci:latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: cmake
|
|
run: cmake -S . -B build -DJSON_CI=On
|
|
- name: build
|
|
run: cmake --build build --target ci_clang_tidy
|
|
|
|
ci_test_amalgamation:
|
|
runs-on: ubuntu-latest
|
|
container: nlohmann/json-ci:latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: cmake
|
|
run: cmake -S . -B build -DJSON_CI=On
|
|
- name: build
|
|
run: cmake --build build --target ci_test_amalgamation
|
|
|
|
ci_test_diagnostics:
|
|
runs-on: ubuntu-latest
|
|
container: nlohmann/json-ci:latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: cmake
|
|
run: cmake -S . -B build -DJSON_CI=On
|
|
- name: build
|
|
run: cmake --build build --target ci_test_diagnostics
|
|
|
|
ci_test_noexceptions:
|
|
runs-on: ubuntu-latest
|
|
container: nlohmann/json-ci:latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: cmake
|
|
run: cmake -S . -B build -DJSON_CI=On
|
|
- name: build
|
|
run: cmake --build build --target ci_test_noexceptions
|
|
|
|
ci_test_noimplicitconversions:
|
|
runs-on: ubuntu-latest
|
|
container: nlohmann/json-ci:latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: cmake
|
|
run: cmake -S . -B build -DJSON_CI=On
|
|
- name: build
|
|
run: cmake --build build --target ci_test_noimplicitconversions
|
|
|
|
ci_test_clang_sanitizer:
|
|
runs-on: ubuntu-latest
|
|
container: nlohmann/json-ci:latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: cmake
|
|
run: cmake -S . -B build -DJSON_CI=On
|
|
- name: build
|
|
run: cmake --build build --target ci_test_clang_sanitizer
|
|
|
|
ci_test_coverage:
|
|
runs-on: ubuntu-latest
|
|
container: nlohmann/json-ci:latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- 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@v2
|
|
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
|