Skip to content

Commit

Permalink
Merge pull request #599 from stephenswat/ci/cxx20
Browse files Browse the repository at this point in the history
Add new CI platform for C++20 builds
  • Loading branch information
stephenswat committed Jun 21, 2024
2 parents aa3c561 + e96f2d6 commit 338d9f6
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion .github/workflows/builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,24 +26,39 @@ jobs:
platform:
- name: CPU
container: ghcr.io/acts-project/ubuntu2004:v30
cxx_standard: "17"
options:
- name: CPU
container: ghcr.io/acts-project/ubuntu2004:v30
cxx_standard: "17"
options: -DTRACCC_USE_ROOT=FALSE
- name: CPU
container: ghcr.io/acts-project/ubuntu2404:48
cxx_standard: "20"
options: -DTRACCC_USE_ROOT=FALSE
- name: HIP
container: ghcr.io/acts-project/ubuntu2004_rocm:47
cxx_standard: "17"
options: -DTRACCC_BUILD_HIP=TRUE -DTRACCC_SETUP_ROCTHRUST=TRUE
- name: CUDA
container: ghcr.io/acts-project/ubuntu2004_cuda:47
cxx_standard: "17"
options: -DTRACCC_BUILD_CUDA=TRUE -DTRACCC_ENABLE_NVTX_PROFILING=TRUE
- name: CUDA
container: ghcr.io/acts-project/ubuntu2204_cuda:48
cxx_standard: "20"
options: -DTRACCC_BUILD_CUDA=TRUE -DTRACCC_USE_ROOT=FALSE
- name: SYCL
container: ghcr.io/acts-project/ubuntu2004_oneapi:47
cxx_standard: "17"
options: -DTRACCC_BUILD_SYCL=TRUE
- name: KOKKOS
container: ghcr.io/acts-project/ubuntu2004:v30
cxx_standard: "17"
options: -DTRACCC_BUILD_KOKKOS=TRUE
- name: ALPAKA
container: ghcr.io/acts-project/ubuntu2204:v33
cxx_standard: "17"
options: -DTRACCC_BUILD_ALPAKA=TRUE
build:
- Release
Expand All @@ -52,11 +67,13 @@ jobs:
- platform:
name: "SYCL"
container: ghcr.io/acts-project/ubuntu2004_cuda_oneapi:47
cxx_standard: "17"
options: -DTRACCC_BUILD_SYCL=TRUE -DTRACCC_BUILD_CUDA=FALSE -DVECMEM_BUILD_CUDA_LIBRARY=FALSE
build: Release
- platform:
name: "SYCL"
container: ghcr.io/acts-project/ubuntu2004_rocm_oneapi:47
cxx_standard: "17"
options: -DTRACCC_BUILD_SYCL=TRUE -DVECMEM_BUILD_HIP_LIBRARY=FALSE
build: Release
# Use BASH as the shell from the images.
Expand All @@ -70,7 +87,16 @@ jobs:
- name: Configure
run: |
source ${GITHUB_WORKSPACE}/.github/ci_setup.sh ${{ matrix.platform.name }}
cmake -DCMAKE_BUILD_TYPE=${{ matrix.build }} ${{ matrix.platform.options }} -DTRACCC_FAIL_ON_WARNINGS=TRUE -S ${GITHUB_WORKSPACE} -B build
cmake \
-DCMAKE_BUILD_TYPE=${{ matrix.build }} \
-DCMAKE_CXX_STANDARD=${{ matrix.platform.cxx_standard }} \
-DCMAKE_CUDA_STANDARD=${{ matrix.platform.cxx_standard }} \
-DCMAKE_HIP_STANDARD=${{ matrix.platform.cxx_standard }} \
-DCMAKE_SYCL_STANDARD=${{ matrix.platform.cxx_standard }} \
${{ matrix.platform.options }} \
-DTRACCC_FAIL_ON_WARNINGS=TRUE \
-S ${GITHUB_WORKSPACE} \
-B build
- name: Build
run: |
source ${GITHUB_WORKSPACE}/.github/ci_setup.sh ${{ matrix.platform.name }}
Expand Down

0 comments on commit 338d9f6

Please sign in to comment.