Skip to content

Commit be62058

Browse files
authored
Adds some C++20 tests (only headers). (simdjson#1053)
* Adds some C++20 tests (only headers). * Tweaking.
1 parent af18d5e commit be62058

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.circleci/config.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,19 +101,23 @@ commands:
101101
- run: cd build && make install
102102
- run: echo -e '#include <simdjson.h>\nint main(int argc,char**argv) {simdjson::dom::parser parser;simdjson::dom::element tweets = parser.load(argv[1]); }' > tmp.cpp && c++ -Ibuild/destination/include -Lbuild/destination/lib -std=c++17 -Wl,-rpath,build/destination/lib -o linkandrun tmp.cpp -lsimdjson && ./linkandrun jsonexamples/twitter.json
103103

104+
cmake_installed_test_cxx20: # assuming that it was installed, this tries to build using C++20
105+
steps:
106+
- run: echo -e '#include <simdjson.h>\nint main(int argc,char**argv) {simdjson::dom::parser parser;simdjson::dom::element tweets = parser.load(argv[1]); }' > tmp.cpp && c++ -Ibuild/destination/include -Lbuild/destination/lib -std=c++20 -Wl,-rpath,build/destination/lib -o linkandrun tmp.cpp -lsimdjson && ./linkandrun jsonexamples/twitter.json
107+
104108
jobs:
105109

106110
# static
107111
justlib-gcc10:
108112
description: Build just the library, install it and do a basic test
109113
executor: gcc10
110114
environment: { CMAKE_FLAGS: -DSIMDJSON_JUST_LIBRARY=ON }
111-
steps: [ cmake_build, cmake_install_test ]
115+
steps: [ cmake_build, cmake_install_test, cmake_installed_test_cxx20 ]
112116
gcc10:
113117
description: Build and run tests on GCC 10 and AVX 2 with a cmake static build, this test performance regression
114118
executor: gcc10
115119
environment: { CMAKE_FLAGS: -DSIMDJSON_GOOGLE_BENCHMARKS=ON -DSIMDJSON_BUILD_STATIC=ON }
116-
steps: [ cmake_test_all, cmake_install_test ]
120+
steps: [ cmake_test_all, cmake_install_test, cmake_installed_test_cxx20 ]
117121
clang6:
118122
description: Build and run tests on clang 6 and AVX 2 with a cmake static build
119123
executor: clang6
@@ -123,13 +127,13 @@ jobs:
123127
description: Build and run tests on clang 10 and AVX 2 with a cmake static build
124128
executor: clang10
125129
environment: { CMAKE_FLAGS: -DSIMDJSON_GOOGLE_BENCHMARKS=ON -DSIMDJSON_BUILD_STATIC=ON }
126-
steps: [ cmake_test, cmake_install_test ]
130+
steps: [ cmake_test, cmake_install_test, cmake_installed_test_cxx20 ]
127131
# libcpp
128132
libcpp-clang10:
129133
description: Build and run tests on clang 10 and AVX 2 with a cmake static build and libc++
130134
executor: clang10
131135
environment: { CMAKE_FLAGS: -DSIMDJSON_USE_LIBCPP=ON -DSIMDJSON_BUILD_STATIC=ON }
132-
steps: [ cmake_test, cmake_install_test ]
136+
steps: [ cmake_test, cmake_install_test, cmake_installed_test_cxx20 ]
133137
# sanitize
134138
sanitize-gcc10:
135139
description: Build and run tests on GCC 10 and AVX 2 with a cmake sanitize build

0 commit comments

Comments
 (0)