Skip to content

Commit e96f2d6

Browse files
committed
Add new CI platform for C++20 builds
In light of some recent issues in Detray as well as some work that I want to put into traccc, this commit adds a new C++20 platform based on Ubuntu 24.04 that will test the compilation of (the host part of) traccc on the newer C++ standard.
1 parent aa3c561 commit e96f2d6

File tree

1 file changed

+27
-1
lines changed

1 file changed

+27
-1
lines changed

.github/workflows/builds.yml

+27-1
Original file line numberDiff line numberDiff line change
@@ -26,24 +26,39 @@ jobs:
2626
platform:
2727
- name: CPU
2828
container: ghcr.io/acts-project/ubuntu2004:v30
29+
cxx_standard: "17"
2930
options:
3031
- name: CPU
3132
container: ghcr.io/acts-project/ubuntu2004:v30
33+
cxx_standard: "17"
34+
options: -DTRACCC_USE_ROOT=FALSE
35+
- name: CPU
36+
container: ghcr.io/acts-project/ubuntu2404:48
37+
cxx_standard: "20"
3238
options: -DTRACCC_USE_ROOT=FALSE
3339
- name: HIP
3440
container: ghcr.io/acts-project/ubuntu2004_rocm:47
41+
cxx_standard: "17"
3542
options: -DTRACCC_BUILD_HIP=TRUE -DTRACCC_SETUP_ROCTHRUST=TRUE
3643
- name: CUDA
3744
container: ghcr.io/acts-project/ubuntu2004_cuda:47
45+
cxx_standard: "17"
3846
options: -DTRACCC_BUILD_CUDA=TRUE -DTRACCC_ENABLE_NVTX_PROFILING=TRUE
47+
- name: CUDA
48+
container: ghcr.io/acts-project/ubuntu2204_cuda:48
49+
cxx_standard: "20"
50+
options: -DTRACCC_BUILD_CUDA=TRUE -DTRACCC_USE_ROOT=FALSE
3951
- name: SYCL
4052
container: ghcr.io/acts-project/ubuntu2004_oneapi:47
53+
cxx_standard: "17"
4154
options: -DTRACCC_BUILD_SYCL=TRUE
4255
- name: KOKKOS
4356
container: ghcr.io/acts-project/ubuntu2004:v30
57+
cxx_standard: "17"
4458
options: -DTRACCC_BUILD_KOKKOS=TRUE
4559
- name: ALPAKA
4660
container: ghcr.io/acts-project/ubuntu2204:v33
61+
cxx_standard: "17"
4762
options: -DTRACCC_BUILD_ALPAKA=TRUE
4863
build:
4964
- Release
@@ -52,11 +67,13 @@ jobs:
5267
- platform:
5368
name: "SYCL"
5469
container: ghcr.io/acts-project/ubuntu2004_cuda_oneapi:47
70+
cxx_standard: "17"
5571
options: -DTRACCC_BUILD_SYCL=TRUE -DTRACCC_BUILD_CUDA=FALSE -DVECMEM_BUILD_CUDA_LIBRARY=FALSE
5672
build: Release
5773
- platform:
5874
name: "SYCL"
5975
container: ghcr.io/acts-project/ubuntu2004_rocm_oneapi:47
76+
cxx_standard: "17"
6077
options: -DTRACCC_BUILD_SYCL=TRUE -DVECMEM_BUILD_HIP_LIBRARY=FALSE
6178
build: Release
6279
# Use BASH as the shell from the images.
@@ -70,7 +87,16 @@ jobs:
7087
- name: Configure
7188
run: |
7289
source ${GITHUB_WORKSPACE}/.github/ci_setup.sh ${{ matrix.platform.name }}
73-
cmake -DCMAKE_BUILD_TYPE=${{ matrix.build }} ${{ matrix.platform.options }} -DTRACCC_FAIL_ON_WARNINGS=TRUE -S ${GITHUB_WORKSPACE} -B build
90+
cmake \
91+
-DCMAKE_BUILD_TYPE=${{ matrix.build }} \
92+
-DCMAKE_CXX_STANDARD=${{ matrix.platform.cxx_standard }} \
93+
-DCMAKE_CUDA_STANDARD=${{ matrix.platform.cxx_standard }} \
94+
-DCMAKE_HIP_STANDARD=${{ matrix.platform.cxx_standard }} \
95+
-DCMAKE_SYCL_STANDARD=${{ matrix.platform.cxx_standard }} \
96+
${{ matrix.platform.options }} \
97+
-DTRACCC_FAIL_ON_WARNINGS=TRUE \
98+
-S ${GITHUB_WORKSPACE} \
99+
-B build
74100
- name: Build
75101
run: |
76102
source ${GITHUB_WORKSPACE}/.github/ci_setup.sh ${{ matrix.platform.name }}

0 commit comments

Comments
 (0)