From 5feee79476b0cd64aea7a7405db9b766aff47da5 Mon Sep 17 00:00:00 2001 From: Niels Lohmann Date: Sun, 21 Aug 2022 13:04:01 +0200 Subject: [PATCH] :wrench: less use of ghcr.io/nlohmann/json-ci --- .github/workflows/ubuntu.yml | 34 ++++++++++++++++++++++++++++++++-- 1 file changed, 32 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index 92405401d..70e523198 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -43,7 +43,7 @@ jobs: container: ghcr.io/nlohmann/json-ci:v2.4.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] + target: [ci_cppcheck, ci_test_valgrind, ci_test_amalgamation, ci_infer] steps: - uses: actions/checkout@v3 - name: Run CMake @@ -51,6 +51,35 @@ jobs: - name: Build run: cmake --build build --target ${{ matrix.target }} + ci_static_analysis_ubuntu: + runs-on: ubuntu-latest + strategy: + matrix: + target: [ci_cpplint, ci_cmake_flags, ci_single_binaries, ci_reproducible_tests, ci_non_git_tests, ci_offline_testdata] + steps: + - uses: actions/checkout@v3 + - name: Get latest CMake and ninja + uses: lukka/get-cmake@latest + - name: Run CMake + run: cmake -S . -B build -DJSON_CI=On + - name: Build + run: cmake --build build --target ${{ matrix.target }} + + ci_static_analysis_clang: + runs-on: ubuntu-latest + container: silkeh/clang:latest + strategy: + matrix: + target: [ci_clang_tidy, ci_test_clang_sanitizer, ci_clang_analyze] + steps: + - uses: actions/checkout@v3 + - name: Get latest CMake and ninja + uses: lukka/get-cmake@latest + - name: Run CMake + run: cmake -S . -B build -DJSON_CI=On + - name: Build + run: cmake --build build --target ${{ matrix.target }} + ci_test_single_header: runs-on: ubuntu-latest container: ghcr.io/nlohmann/json-ci:v2.4.0 @@ -63,12 +92,13 @@ jobs: ci_cmake_options: runs-on: ubuntu-latest - container: ghcr.io/nlohmann/json-ci:v2.4.0 strategy: matrix: target: [ci_test_diagnostics, ci_test_noexceptions, ci_test_noimplicitconversions, ci_test_legacycomparison, ci_test_noglobaludls] steps: - uses: actions/checkout@v3 + - name: Get latest CMake and ninja + uses: lukka/get-cmake@latest - name: Run CMake run: cmake -S . -B build -DJSON_CI=On - name: Build