Skip to content

Commit f765fa2

Browse files
committed
[ci] Use at least C++20 for all special builds
Like this, we can test also ROOT features exclusive to C++ 20 if applicable. This could include for example usage of `std::experimental::simd`. There is no effect on the binaries provided to our users, as the special builds are not used to produce binaries.
1 parent 571c3e8 commit f765fa2

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/root-ci.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -398,20 +398,20 @@ jobs:
398398
- image: alma9
399399
is_special: true
400400
property: modules_off
401-
overrides: ["runtime_cxxmodules=Off"]
401+
overrides: ["runtime_cxxmodules=Off", "CMAKE_CXX_STANDARD=20"]
402402
- image: alma9
403403
is_special: true
404404
property: march_native
405-
overrides: ["CMAKE_BUILD_TYPE=RelWithDebInfo", "CMAKE_CXX_FLAGS=-march=native", "CMAKE_C_FLAGS=-march=native", "builtin_zlib=ON", "builtin_zstd=ON"]
405+
overrides: ["CMAKE_BUILD_TYPE=RelWithDebInfo", "CMAKE_CXX_FLAGS=-march=native", "CMAKE_C_FLAGS=-march=native", "builtin_zlib=ON", "builtin_zstd=ON", "CMAKE_CXX_STANDARD=20"]
406406
- image: alma10
407407
is_special: true
408408
property: arm64
409-
overrides: ["CMAKE_BUILD_TYPE=RelWithDebInfo", "builtin_zlib=ON", "builtin_zstd=ON"]
409+
overrides: ["CMAKE_BUILD_TYPE=RelWithDebInfo", "builtin_zlib=ON", "builtin_zstd=ON", "CMAKE_CXX_STANDARD=20"]
410410
architecture: ARM64
411411
- image: alma10
412412
is_special: true
413413
property: "clang Ninja"
414-
overrides: ["CMAKE_C_COMPILER=clang", "CMAKE_CXX_COMPILER=clang++"]
414+
overrides: ["CMAKE_C_COMPILER=clang", "CMAKE_CXX_COMPILER=clang++", "CMAKE_CXX_STANDARD=20"]
415415
cmake_generator: Ninja
416416
# Fedora Rawhide with Python debug build
417417
- image: rawhide
@@ -423,6 +423,7 @@ jobs:
423423
is_special: true
424424
minimal: true
425425
property: "minimal build"
426+
overrides: ["CMAKE_CXX_STANDARD=20"]
426427
# Disable GPU builds until the DNS problem is solved
427428
# - image: ubuntu2404-cuda
428429
# is_special: true

0 commit comments

Comments
 (0)