-
Notifications
You must be signed in to change notification settings - Fork 136
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Expand test matrix to include windows runs
Do not run the examples on windows as we do not have GPU runners with windows images yet
- Loading branch information
Showing
3 changed files
with
50 additions
and
23 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Build examples | ||
on: | ||
workflow_call: | ||
inputs: | ||
per_cuda_compiler_matrix: {type: string, required: true} | ||
devcontainer_version: {type: string, required: true} | ||
is_windows: {type: boolean, required: true} | ||
|
||
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_examples: | ||
name: Build examples | ||
if: ${{ !inputs.is_windows }} | ||
uses: ./.github/workflows/run-as-coder.yml | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: ${{ fromJSON(inputs.per_cuda_compiler_matrix) }} | ||
with: | ||
name: CCCL Examples CUDA${{matrix.cuda}} ${{matrix.compiler.name}}${{matrix.compiler.version}} | ||
runner: linux-${{matrix.cpu}}-gpu-v100-latest-1 | ||
image: rapidsai/devcontainers:${{inputs.devcontainer_version}}-cpp-${{matrix.compiler.name}}${{matrix.compiler.version}}-cuda${{matrix.cuda}}-${{matrix.os}} | ||
command: | | ||
cmake -S . --preset=examples -DCCCL_EXAMPLE_CPM_TAG=${GITHUB_SHA} -DCMAKE_CUDA_COMPILER=nvcc | ||
ctest --preset=examples |
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
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