SoA Proxy, main branch (2024.09.25.) (#296) #1419
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# VecMem project, part of the ACTS project (R&D line) | |
# | |
# (c) 2021-2023 CERN for the benefit of the ACTS project | |
# | |
# Mozilla Public License Version 2.0 | |
# Name for this "action". | |
name: Build Tests | |
# Perform the builds on every push and pull request. | |
on: [ push, pull_request ] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
# All the different build/test jobs. | |
jobs: | |
# Native build jobs. | |
native: | |
# The different build modes to test. | |
strategy: | |
matrix: | |
BUILD: | |
- TYPE: "Release" | |
MSG_LVL: 0 | |
- TYPE: "Debug" | |
MSG_LVL: 5 | |
PLATFORM: | |
- OS: "ubuntu-latest" | |
GENERATOR: -G "Unix Makefiles" | |
- OS: "macos-latest" | |
GENERATOR: -G "Xcode" | |
- OS: "windows-latest" | |
GENERATOR: | |
name: "native (${{ matrix.BUILD.TYPE }}, ${{ matrix.PLATFORM.OS }})" | |
# The system to run on. | |
runs-on: ${{ matrix.PLATFORM.OS }} | |
# The build/test steps to execute. | |
steps: | |
# Use a standard checkout of the code. | |
- uses: actions/checkout@v4 | |
# Run the CMake configuration. | |
- name: Configure | |
run: cmake -DCMAKE_BUILD_TYPE=${{ matrix.BUILD.TYPE }} | |
-DVECMEM_DEBUG_MSG_LVL=${{ matrix.BUILD.MSG_LVL }} | |
-DVECMEM_BUILD_BENCHMARKING=TRUE | |
-DVECMEM_FAIL_ON_WARNINGS=TRUE | |
-S ${{ github.workspace }} -B build | |
${{ matrix.PLATFORM.GENERATOR }} | |
# Perform the build. | |
- name: Build | |
run: cmake --build build --config ${{ matrix.BUILD.TYPE }} | |
# Run the unit test(s). | |
- name: Test | |
run: | | |
cd build | |
ctest --output-on-failure -C ${{ matrix.BUILD.TYPE }} | |
# Containerised build jobs. | |
container: | |
# The different build modes to test. | |
strategy: | |
matrix: | |
BUILD: | |
- TYPE: "Release" | |
MSG_LVL: 0 | |
- TYPE: "Debug" | |
MSG_LVL: 5 | |
PLATFORM: | |
- NAME: "CPU" | |
CONTAINER: "ghcr.io/acts-project/ubuntu2404:47" | |
CONTAINER_NAME: "Ubuntu 24.04" | |
CXX_STANDARD: "17" | |
OPTIONS: | |
NOTES: | |
RUN_TESTS: true | |
- NAME: "CPU" | |
CONTAINER: "ghcr.io/acts-project/ubuntu2404:47" | |
CONTAINER_NAME: "Ubuntu 24.04" | |
CXX_STANDARD: "20" | |
OPTIONS: | |
NOTES: | |
RUN_TESTS: true | |
- NAME: "CPU" | |
CONTAINER: "ghcr.io/acts-project/ubuntu2404:47" | |
CONTAINER_NAME: "Ubuntu 24.04" | |
CXX_STANDARD: "23" | |
OPTIONS: | |
NOTES: | |
RUN_TESTS: true | |
- NAME: "CUDA" | |
CONTAINER: "ghcr.io/acts-project/ubuntu2004_cuda:47" | |
CONTAINER_NAME: "Ubuntu 20.04" | |
CXX_STANDARD: "17" | |
OPTIONS: | |
NOTES: | |
RUN_TESTS: false | |
- NAME: "CUDA" | |
CONTAINER: "ghcr.io/acts-project/ubuntu1804_cuda:v43" | |
CONTAINER_NAME: "Ubuntu 18.04" | |
CXX_STANDARD: "17" | |
OPTIONS: -DCMAKE_CUDA_STANDARD=14 | |
NOTES: CUDA C++14 | |
RUN_TESTS: false | |
- NAME: "HIP" | |
CONTAINER: "ghcr.io/acts-project/ubuntu1804_rocm:v43" | |
CONTAINER_NAME: "Ubuntu 18.04" | |
CXX_STANDARD: "17" | |
OPTIONS: -DCMAKE_HIP_STANDARD=14 | |
NOTES: HIP C++14 | |
RUN_TESTS: false | |
- NAME: "HIP" | |
CONTAINER: "ghcr.io/acts-project/ubuntu2004_rocm:47" | |
CONTAINER_NAME: "Ubuntu 20.04" | |
CXX_STANDARD: "17" | |
OPTIONS: | |
NOTES: | |
RUN_TESTS: false | |
- NAME: "SYCL" | |
CONTAINER: "ghcr.io/acts-project/ubuntu2004_oneapi:47" | |
CONTAINER_NAME: "Ubuntu 20.04" | |
CXX_STANDARD: "17" | |
OPTIONS: | |
NOTES: | |
RUN_TESTS: true | |
include: | |
- BUILD: | |
TYPE: "Release" | |
MSG_LVL: 0 | |
PLATFORM: | |
NAME: "SYCL" | |
CONTAINER: "ghcr.io/acts-project/ubuntu2004_cuda_oneapi:47" | |
CONTAINER_NAME: "Ubuntu 20.04" | |
CXX_STANDARD: "17" | |
OPTIONS: -DVECMEM_BUILD_CUDA_LIBRARY=FALSE | |
NOTES: "NVIDIA backend" | |
RUN_TESTS: false | |
- BUILD: | |
TYPE: "Release" | |
MSG_LVL: 0 | |
PLATFORM: | |
NAME: "SYCL" | |
CONTAINER: "ghcr.io/acts-project/ubuntu2004_rocm_oneapi:47" | |
CONTAINER_NAME: "Ubuntu 20.04" | |
CXX_STANDARD: "17" | |
OPTIONS: -DVECMEM_BUILD_HIP_LIBRARY=FALSE | |
NOTES: "AMD backend" | |
RUN_TESTS: false | |
name: "container (${{ matrix.BUILD.TYPE }}, ${{ matrix.PLATFORM.NAME }}, C++${{ matrix.PLATFORM.CXX_STANDARD }}, ${{ matrix.PLATFORM.CONTAINER_NAME }}${{ matrix.PLATFORM.NOTES != '' && ', ' || '' }}${{ matrix.PLATFORM.NOTES }})" | |
# Hack to continue using checkout (for now) on Ubuntu 18.04. | |
# see: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/ | |
env: | |
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true | |
# The system to run on. | |
runs-on: ubuntu-latest | |
container: ${{ matrix.PLATFORM.CONTAINER }} | |
# Use BASH as the shell from the image. | |
defaults: | |
run: | |
shell: bash | |
# The build/test steps to execute. | |
steps: | |
# Use a standard checkout of the code. | |
- uses: actions/checkout@v3 | |
# Run the CMake configuration. | |
- name: Configure | |
run: | | |
source ${GITHUB_WORKSPACE}/.github/ci_setup.sh ${{ matrix.PLATFORM.NAME }} | |
cmake \ | |
-DCMAKE_CXX_STANDARD=${{ matrix.PLATFORM.CXX_STANDARD }} \ | |
-DCMAKE_CUDA_STANDARD=${{matrix.PLATFORM.CXX_STANDARD }} \ | |
-DCMAKE_SYCL_STANDARD=${{ matrix.PLATFORM.CXX_STANDARD }} \ | |
-DCMAKE_HIP_STANDARD=${{ matrix.PLATFORM.CXX_STANDARD }} \ | |
-DCMAKE_BUILD_TYPE=${{ matrix.BUILD.TYPE }} \ | |
-DVECMEM_DEBUG_MSG_LVL=${{ matrix.BUILD.MSG_LVL }} \ | |
-DVECMEM_BUILD_${{ matrix.PLATFORM.NAME }}_LIBRARY=TRUE \ | |
-DVECMEM_BUILD_BENCHMARKING=TRUE \ | |
-DVECMEM_FAIL_ON_WARNINGS=TRUE \ | |
${{ matrix.PLATFORM.OPTIONS }} \ | |
-S ${GITHUB_WORKSPACE} \ | |
-B build | |
# Perform the build. | |
- name: Build | |
run: | | |
source ${GITHUB_WORKSPACE}/.github/ci_setup.sh ${{ matrix.PLATFORM.NAME }} | |
cmake --build build | |
# Run the unit test(s). | |
- name: Test | |
if: "matrix.PLATFORM.RUN_TESTS == true" | |
run: | | |
cd build | |
source ${GITHUB_WORKSPACE}/.github/ci_setup.sh ${{ matrix.PLATFORM.NAME }} | |
ctest --output-on-failure |