@@ -16,9 +16,13 @@ concurrency:
1616jobs :
1717 ci_test_clang :
1818 runs-on : ubuntu-latest
19- container : ghcr.io/nlohmann/json-ci:v2.4.0
19+ container : silkeh/clang:dev
2020 steps :
21+ - name : Install git
22+ run : apt-get update ; apt-get install -y git
2123 - uses : actions/checkout@v3
24+ - name : Get latest CMake and ninja
25+ uses : lukka/get-cmake@latest
2226 - name : Run CMake
2327 run : cmake -S . -B build -DJSON_CI=On
2428 - name : Build
@@ -39,32 +43,54 @@ jobs:
3943 container : ghcr.io/nlohmann/json-ci:v2.4.0
4044 strategy :
4145 matrix :
42- 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]
46+ target : [ci_cppcheck, ci_test_valgrind, ci_test_amalgamation, ci_test_single_header, ci_single_binaries, ci_infer]
4347 steps :
4448 - uses : actions/checkout@v3
4549 - name : Run CMake
4650 run : cmake -S . -B build -DJSON_CI=On
4751 - name : Build
4852 run : cmake --build build --target ${{ matrix.target }}
4953
50- ci_test_single_header :
54+ ci_static_analysis_ubuntu :
5155 runs-on : ubuntu-latest
52- container : ghcr.io/nlohmann/json-ci:v2.4.0
56+ strategy :
57+ matrix :
58+ target : [ci_cpplint, ci_cmake_flags, ci_reproducible_tests, ci_non_git_tests, ci_offline_testdata]
5359 steps :
5460 - uses : actions/checkout@v3
61+ - name : Get latest CMake and ninja
62+ uses : lukka/get-cmake@latest
5563 - name : Run CMake
5664 run : cmake -S . -B build -DJSON_CI=On
5765 - name : Build
58- run : cmake --build build --target ci_test_single_header
66+ run : cmake --build build --target ${{ matrix.target }}
67+
68+ ci_static_analysis_clang :
69+ runs-on : ubuntu-latest
70+ container : silkeh/clang:dev
71+ strategy :
72+ matrix :
73+ target : [ci_clang_tidy, ci_test_clang_sanitizer, ci_clang_analyze]
74+ steps :
75+ - name : Install git
76+ run : apt-get update ; apt-get install -y git
77+ - uses : actions/checkout@v3
78+ - name : Get latest CMake and ninja
79+ uses : lukka/get-cmake@latest
80+ - name : Run CMake
81+ run : cmake -S . -B build -DJSON_CI=On
82+ - name : Build
83+ run : cmake --build build --target ${{ matrix.target }}
5984
6085 ci_cmake_options :
6186 runs-on : ubuntu-latest
62- container : ghcr.io/nlohmann/json-ci:v2.4.0
6387 strategy :
6488 matrix :
6589 target : [ci_test_diagnostics, ci_test_noexceptions, ci_test_noimplicitconversions, ci_test_legacycomparison, ci_test_noglobaludls]
6690 steps :
6791 - uses : actions/checkout@v3
92+ - name : Get latest CMake and ninja
93+ uses : lukka/get-cmake@latest
6894 - name : Run CMake
6995 run : cmake -S . -B build -DJSON_CI=On
7096 - name : Build
@@ -90,12 +116,42 @@ jobs:
90116 github-token : ${{ secrets.GITHUB_TOKEN }}
91117 path-to-lcov : ${{ github.workspace }}/build/json.info.filtered.noexcept
92118
119+ ci_test_compilers_gcc :
120+ runs-on : ubuntu-latest
121+ strategy :
122+ matrix :
123+ compiler : ['4', '5', '6', '7', '8', '9', '10', '11', '12', 'latest']
124+ container : gcc:${{ matrix.compiler }}
125+ steps :
126+ - uses : actions/checkout@v3
127+ - name : Get latest CMake and ninja
128+ uses : lukka/get-cmake@latest
129+ - name : Run CMake
130+ run : cmake -S . -B build -DJSON_CI=On
131+ - name : Build
132+ run : cmake --build build --target ci_test_compiler_default
133+
134+ ci_test_compilers_clang :
135+ runs-on : ubuntu-latest
136+ strategy :
137+ matrix :
138+ compiler : ['3.5', '3.6', '3.7', '3.8', '3.9', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', 'latest']
139+ container : silkeh/clang:${{ matrix.compiler }}
140+ steps :
141+ - uses : actions/checkout@v3
142+ - name : Get latest CMake and ninja
143+ uses : lukka/get-cmake@latest
144+ - name : Run CMake
145+ run : cmake -S . -B build -DJSON_CI=On
146+ - name : Build
147+ run : cmake --build build --target ci_test_compiler_default
148+
93149 ci_test_compilers :
94150 runs-on : ubuntu-latest
95151 container : ghcr.io/nlohmann/json-ci:v2.4.0
96152 strategy :
97153 matrix :
98- 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 ]
154+ compiler : [g++-4.8]
99155 steps :
100156 - uses : actions/checkout@v3
101157 - name : Run CMake
0 commit comments