23
23
steps :
24
24
- name : Install git and unzip
25
25
run : apt-get update ; apt-get install -y git unzip
26
- - uses : actions/checkout@v3
26
+ - uses : actions/checkout@v4
27
27
- name : Get latest CMake and ninja
28
28
29
29
- name : Run CMake
35
35
runs-on : ubuntu-latest
36
36
container : ghcr.io/nlohmann/json-ci:v2.4.0
37
37
steps :
38
- - uses : actions/checkout@v3
38
+ - uses : actions/checkout@v4
39
39
- name : Run CMake
40
40
run : cmake -S . -B build -DJSON_CI=On
41
41
- name : Build
48
48
matrix :
49
49
target : [ci_cppcheck, ci_test_valgrind, ci_test_amalgamation, ci_test_single_header, ci_single_binaries, ci_infer]
50
50
steps :
51
- - uses : actions/checkout@v3
51
+ - uses : actions/checkout@v4
52
52
- name : Run CMake
53
53
run : cmake -S . -B build -DJSON_CI=On
54
54
- name : Build
60
60
matrix :
61
61
target : [ci_cpplint, ci_reproducible_tests, ci_non_git_tests, ci_offline_testdata]
62
62
steps :
63
- - uses : actions/checkout@v3
63
+ - uses : actions/checkout@v4
64
64
- name : Get latest CMake and ninja
65
65
66
66
- name : Run CMake
77
77
steps :
78
78
- name : Install git, clang-tools, and unzip
79
79
run : apt-get update ; apt-get install -y git clang-tools unzip
80
- - uses : actions/checkout@v3
80
+ - uses : actions/checkout@v4
81
81
- name : Get latest CMake and ninja
82
82
83
83
- name : Run CMake
94
94
steps :
95
95
- name : Install build-essential
96
96
run : apt-get update ; apt-get install -y build-essential unzip wget git
97
- - uses : actions/checkout@v3
97
+ - uses : actions/checkout@v4
98
98
- name : Get latest CMake and ninja
99
99
100
100
- name : Run CMake
@@ -109,7 +109,7 @@ jobs:
109
109
contents : read
110
110
checks : write
111
111
steps :
112
- - uses : actions/checkout@v3
112
+ - uses : actions/checkout@v4
113
113
- name : Run CMake
114
114
run : cmake -S . -B build -DJSON_CI=On
115
115
- name : Build
@@ -125,14 +125,28 @@ jobs:
125
125
github-token : ${{ secrets.GITHUB_TOKEN }}
126
126
path-to-lcov : ${{ github.workspace }}/build/json.info.filtered.noexcept
127
127
128
+ ci_test_compilers_gcc_old :
129
+ runs-on : ubuntu-latest
130
+ strategy :
131
+ matrix :
132
+ compiler : ['4.8', '4.9', '5', '6']
133
+ container : ghcr.io/nlohmann/json-ci:v2.4.0
134
+ steps :
135
+ - uses : actions/checkout@v4
136
+ - name : Run CMake
137
+ run : CXX=g++-${{ matrix.compiler }} cmake -S . -B build -DJSON_CI=On
138
+ - name : Build
139
+ run : cmake --build build --target ci_test_compiler_g++-${{ matrix.compiler }}
140
+
128
141
ci_test_compilers_gcc :
129
142
runs-on : ubuntu-latest
130
143
strategy :
131
144
matrix :
132
- compiler : ['4', '5', '6', '7', '8', '9', '10', '11', '12', 'latest']
145
+ # older GCC docker images (4, 5, 6) fail to check out code
146
+ compiler : ['7', '8', '9', '10', '11', '12', '13', '14', 'latest']
133
147
container : gcc:${{ matrix.compiler }}
134
148
steps :
135
- - uses : actions/checkout@v3
149
+ - uses : actions/checkout@v4
136
150
- name : Get latest CMake and ninja
137
151
138
152
- name : Run CMake
@@ -144,12 +158,12 @@ jobs:
144
158
runs-on : ubuntu-latest
145
159
strategy :
146
160
matrix :
147
- compiler : ['3.5', '3.6', '3.7', '3.8', '3.9', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '15-bullseye', 'latest']
161
+ compiler : ['3.5', '3.6', '3.7', '3.8', '3.9', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '15-bullseye', '16', '17', '18', '19', ' latest']
148
162
container : silkeh/clang:${{ matrix.compiler }}
149
163
steps :
150
164
- name : Install unzip and git
151
165
run : apt-get update ; apt-get install -y unzip git
152
- - uses : actions/checkout@v3
166
+ - uses : actions/checkout@v4
153
167
- name : Get latest CMake and ninja
154
168
155
169
- name : Set env FORCE_STDCPPFS_FLAG for clang 7 / 8 / 9 / 10
@@ -167,7 +181,7 @@ jobs:
167
181
matrix :
168
182
compiler : [g++-4.8]
169
183
steps :
170
- - uses : actions/checkout@v3
184
+ - uses : actions/checkout@v4
171
185
- name : Run CMake
172
186
run : cmake -S . -B build -DJSON_CI=On
173
187
- name : Build
@@ -180,7 +194,7 @@ jobs:
180
194
matrix :
181
195
standard : [11, 14, 17, 20, 23]
182
196
steps :
183
- - uses : actions/checkout@v3
197
+ - uses : actions/checkout@v4
184
198
- name : Run CMake
185
199
run : cmake -S . -B build -DJSON_CI=On
186
200
- name : Build
@@ -195,7 +209,7 @@ jobs:
195
209
steps :
196
210
- name : Install git and unzip
197
211
run : apt-get update ; apt-get install -y git unzip
198
- - uses : actions/checkout@v3
212
+ - uses : actions/checkout@v4
199
213
- name : Get latest CMake and ninja
200
214
201
215
- name : Run CMake
@@ -207,7 +221,7 @@ jobs:
207
221
runs-on : ubuntu-latest
208
222
container : ghcr.io/nlohmann/json-ci:v2.4.0
209
223
steps :
210
- - uses : actions/checkout@v3
224
+ - uses : actions/checkout@v4
211
225
- name : Run CMake
212
226
run : cmake -S . -B build -DJSON_CI=On
213
227
- name : Build
@@ -228,7 +242,7 @@ jobs:
228
242
ci_reuse_compliance :
229
243
runs-on : ubuntu-latest
230
244
steps :
231
- - uses : actions/checkout@v3
245
+ - uses : actions/checkout@v4
232
246
- uses : actions/setup-python@v3
233
247
- name : Install REUSE tool
234
248
run : python -m pip install reuse
@@ -241,7 +255,7 @@ jobs:
241
255
matrix :
242
256
target : [ci_test_examples, ci_test_api_documentation]
243
257
steps :
244
- - uses : actions/checkout@v3
258
+ - uses : actions/checkout@v4
245
259
- name : Run CMake
246
260
run : cmake -S . -B build -DJSON_CI=On
247
261
- name : Build
0 commit comments