Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
json
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
json
Commits
f1600cd2
Unverified
Commit
f1600cd2
authored
Apr 25, 2021
by
Niels Lohmann
Committed by
GitHub
Apr 25, 2021
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2737 from nlohmann/upgrade_ci
Use Clang 12 in CI
parents
9774e53c
f6e9654a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
9 deletions
+10
-9
.github/workflows/ubuntu.yml
.github/workflows/ubuntu.yml
+2
-2
README.md
README.md
+4
-3
cmake/ci.cmake
cmake/ci.cmake
+4
-4
No files found.
.github/workflows/ubuntu.yml
View file @
f1600cd2
...
...
@@ -44,7 +44,7 @@ jobs:
container
:
nlohmann/json-ci:latest
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
]
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
]
steps
:
-
uses
:
actions/checkout@v2
-
name
:
cmake
...
...
@@ -90,7 +90,7 @@ jobs:
container
:
nlohmann/json-ci:latest
strategy
:
matrix
:
compiler
:
[
g++-4.8
,
g++-4.9
,
g++-5
,
g++-7
,
g++-8
,
g++-9
,
g++-10
,
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
]
compiler
:
[
g++-4.8
,
g++-4.9
,
g++-5
,
g++-7
,
g++-8
,
g++-9
,
g++-10
,
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
]
steps
:
-
uses
:
actions/checkout@v2
-
name
:
cmake
...
...
README.md
View file @
f1600cd2
...
...
@@ -1201,8 +1201,8 @@ auto cbor = json::to_msgpack(j); // 0xD5 (fixext2), 0x10, 0xCA, 0xFE
Though it's 2021 already, the support for C++11 is still a bit sparse. Currently, the following compilers are known to work:
-
GCC 4.8 - 11.0 (and possibly later)
-
Clang 3.4 - 1
1
.0 (and possibly later)
-
Apple Clang 9.1 - 12.
3
(and possibly later)
-
Clang 3.4 - 1
2
.0 (and possibly later)
-
Apple Clang 9.1 - 12.
4
(and possibly later)
-
Intel C++ Compiler 17.0.2 (and possibly later)
-
Microsoft Visual C++ 2015 / Build Tools 14.0.25123.0 (and possibly later)
-
Microsoft Visual C++ 2017 / Build Tools 15.5.180.51428 (and possibly later)
...
...
@@ -1271,7 +1271,8 @@ The following compilers are currently used in continuous integration at [Travis]
| Clang 10.0.0 with GNU-like command-line | Windows-10.0.17763 | GitHub Actions |
| Clang 11.0.0 with GNU-like command-line | Windows-10.0.17763 | GitHub Actions |
| Clang 11.0.0 with MSVC-like command-line | Windows-10.0.17763 | GitHub Actions |
| Clang 11.1.0 (11.1.0-++20210204121720+1fdec59bffc1-1~exp1~20210203232336.162 | Ubuntu 20.04.2 LTS | GitHub Actions |
| Clang 11.0.0 (11.0.0-2~ubuntu20.04.1) | Ubuntu 20.04.2 LTS | GitHub Actions |
| Clang 12.1.0 (12.0.1-++20210423082613+072c90a863aa-1~exp1~20210423063319.76 | Ubuntu 20.04.2 LTS | GitHub Actions |
| Visual Studio 14 2015 MSVC 19.0.24241.7 (Build Engine version 14.0.25420.1) | Windows-6.3.9600 | AppVeyor |
| Visual Studio 15 2017 MSVC 19.16.27035.0 (Build Engine version 15.9.21+g9802d43bc3 for .NET Framework) | Windows-10.0.14393 | AppVeyor |
| Visual Studio 15 2017 MSVC 19.16.27045.0 (Build Engine version 15.9.21+g9802d43bc3 for .NET Framework) | Windows-10.0.14393 | GitHub Actions |
...
...
cmake/ci.cmake
View file @
f1600cd2
...
...
@@ -13,12 +13,12 @@ execute_process(COMMAND ${ASTYLE_TOOL} --version OUTPUT_VARIABLE ASTYLE_TOOL_VER
string
(
REGEX MATCH
"[0-9]+(
\\
.[0-9]+)+"
ASTYLE_TOOL_VERSION
"
${
ASTYLE_TOOL_VERSION
}
"
)
message
(
STATUS
"🔖 Artistic Style
${
ASTYLE_TOOL_VERSION
}
(
${
ASTYLE_TOOL
}
)"
)
find_program
(
CLANG_TOOL NAMES clang++-HEAD clang++-11 clang++
)
find_program
(
CLANG_TOOL NAMES clang++-HEAD clang++-1
2 clang++-1
1 clang++
)
execute_process
(
COMMAND
${
CLANG_TOOL
}
--version OUTPUT_VARIABLE CLANG_TOOL_VERSION ERROR_VARIABLE CLANG_TOOL_VERSION
)
string
(
REGEX MATCH
"[0-9]+(
\\
.[0-9]+)+"
CLANG_TOOL_VERSION
"
${
CLANG_TOOL_VERSION
}
"
)
message
(
STATUS
"🔖 Clang
${
CLANG_TOOL_VERSION
}
(
${
CLANG_TOOL
}
)"
)
find_program
(
CLANG_TIDY_TOOL NAMES clang-tidy-11 clang-tidy
)
find_program
(
CLANG_TIDY_TOOL NAMES clang-tidy-1
2 clang-tidy-1
1 clang-tidy
)
execute_process
(
COMMAND
${
CLANG_TIDY_TOOL
}
--version OUTPUT_VARIABLE CLANG_TIDY_TOOL_VERSION ERROR_VARIABLE CLANG_TIDY_TOOL_VERSION
)
string
(
REGEX MATCH
"[0-9]+(
\\
.[0-9]+)+"
CLANG_TIDY_TOOL_VERSION
"
${
CLANG_TIDY_TOOL_VERSION
}
"
)
message
(
STATUS
"🔖 Clang-Tidy
${
CLANG_TIDY_TOOL_VERSION
}
(
${
CLANG_TIDY_TOOL
}
)"
)
...
...
@@ -486,7 +486,7 @@ add_custom_target(ci_test_coverage
# Sanitizers.
###############################################################################
set
(
CLANG_CXX_FLAGS_SANITIZER
"-g -O1 -fsanitize=address -fsanitize=undefined -fsanitize=integer -fsanitize=nullability -fno-omit-frame-pointer -fno-sanitize-recover=all -f
sanitize-recover=unsigned-integer-overflow
"
)
set
(
CLANG_CXX_FLAGS_SANITIZER
"-g -O1 -fsanitize=address -fsanitize=undefined -fsanitize=integer -fsanitize=nullability -fno-omit-frame-pointer -fno-sanitize-recover=all -f
no-sanitize=unsigned-integer-overflow -fno-sanitize=unsigned-shift-base
"
)
add_custom_target
(
ci_test_clang_sanitizer
COMMAND CXX=
${
CLANG_TOOL
}
CXXFLAGS=
${
CLANG_CXX_FLAGS_SANITIZER
}
${
CMAKE_COMMAND
}
...
...
@@ -637,7 +637,7 @@ add_custom_target(ci_pvs_studio
add_custom_target
(
ci_infer
COMMAND mkdir -p
${
PROJECT_BINARY_DIR
}
/build_infer
COMMAND cd
${
PROJECT_BINARY_DIR
}
/build_infer &&
${
INFER_TOOL
}
compile --
${
CMAKE_COMMAND
}
-DCMAKE_BUILD_TYPE=Debug
${
PROJECT_SOURCE_DIR
}
-DJSON_BuildTests=ON -DJSON_MultipleHeaders=ON
COMMAND cd
${
PROJECT_BINARY_DIR
}
/build_infer &&
${
INFER_TOOL
}
run -- make
--parallel
${
N
}
COMMAND cd
${
PROJECT_BINARY_DIR
}
/build_infer &&
${
INFER_TOOL
}
run -- make
COMMENT
"Check code with Infer"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment