mirror of
https://github.com/NVIDIA/nvbench.git
synced 2026-03-14 20:27:24 +00:00
commitc5b2fc0a8bAuthor: Allison Piper <alliepiper16@gmail.com> Date: Sat Apr 6 21:48:20 2024 +0000 Add supported compilers and tools in README.md. commit92fe366da5Author: Allison Piper <alliepiper16@gmail.com> Date: Sat Apr 6 20:45:30 2024 +0000 Fix issues discovered by header tests. commitf7f6c92143Author: Allison Piper <alliepiper16@gmail.com> Date: Sat Apr 6 20:45:06 2024 +0000 Setup header tests, add C++20 header tests + examples. The core library will always be built with C++17, but we test our headers / examples under 17 and 20. commit4b24f26b66Author: Allison Piper <alliepiper16@gmail.com> Date: Sat Apr 6 16:21:42 2024 +0000 Pass CUDA FLAGS to install tests. commit4fb672ae91Author: Allison Piper <alliepiper16@gmail.com> Date: Sat Apr 6 15:43:41 2024 +0000 Add newer GCC (13) and Clang (17, 18).
52 lines
2.3 KiB
YAML
52 lines
2.3 KiB
YAML
name: Dispatch build and test
|
|
|
|
on:
|
|
workflow_call:
|
|
inputs:
|
|
project_name: {type: string, required: true}
|
|
per_cuda_compiler_matrix: {type: string, required: true}
|
|
devcontainer_version: {type: string, required: true}
|
|
is_windows: {type: boolean, required: true}
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
# Using a matrix to dispatch to the build-and-test reusable workflow for each build configuration
|
|
# ensures that the build/test steps can overlap across different configurations. For example,
|
|
# the build step for CUDA 12.1 + gcc 9.3 can run at the same time as the test step for CUDA 11.0 + clang 11.
|
|
build_and_test_linux:
|
|
name: build and test linux
|
|
permissions:
|
|
id-token: write
|
|
contents: read
|
|
if: ${{ !inputs.is_windows }}
|
|
uses: ./.github/workflows/build-and-test-linux.yml
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
include: ${{ fromJSON(inputs.per_cuda_compiler_matrix) }}
|
|
with:
|
|
cpu: ${{ matrix.cpu }}
|
|
test_name: ${{matrix.cpu}}/${{matrix.compiler.name}}${{matrix.compiler.version}} ${{matrix.extra_build_args}}
|
|
build_script: "./ci/build_${{ inputs.project_name }}.sh -cxx ${{matrix.compiler.exe}} ${{matrix.extra_build_args}}"
|
|
test_script: "./ci/test_${{ inputs.project_name }}.sh -cxx ${{matrix.compiler.exe}} ${{matrix.extra_build_args}}"
|
|
container_image: rapidsai/devcontainers:${{inputs.devcontainer_version}}-cpp-${{matrix.compiler.name}}${{matrix.compiler.version}}-cuda${{matrix.cuda}}-${{matrix.os}}
|
|
|
|
build_and_test_windows:
|
|
name: build and test windows
|
|
permissions:
|
|
id-token: write
|
|
contents: read
|
|
if: ${{ inputs.is_windows }}
|
|
uses: ./.github/workflows/build-and-test-windows.yml
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
include: ${{ fromJSON(inputs.per_cuda_compiler_matrix) }}
|
|
with:
|
|
test_name: ${{matrix.cpu}}/${{matrix.compiler.name}}${{matrix.compiler.version}}
|
|
build_script: "./ci/windows/build_${{ inputs.project_name }}.ps1 ${{matrix.extra_build_args}}"
|
|
test_script: "./ci/windows/test_${{ inputs.project_name }}.ps1 ${{matrix.extra_build_args}}"
|
|
container_image: rapidsai/devcontainers:${{inputs.devcontainer_version}}-cuda${{matrix.cuda}}-${{matrix.compiler.name}}${{matrix.compiler.version}}-${{matrix.os}}
|