Skip to content

Commit

Permalink
Refactor infra CI
Browse files Browse the repository at this point in the history
  • Loading branch information
miscco committed Feb 16, 2024
1 parent 73919b3 commit 63a957e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -153,15 +153,11 @@ jobs:
matrix:
include: ${{ fromJSON(needs.compute-matrix.outputs.CCCL_INFRA_MATRIX) }}
uses: ./.github/workflows/run-as-coder.yml
env:
CCCL_DEFAULT_CUDA_ARCHITECTURES=${{matrix.cuda_archs}}
with:
name: CCCL Examples CUDA${{matrix.cuda}} ${{matrix.compiler.name}}${{matrix.compiler.version}}
runner: linux-${{matrix.cpu}}-gpu-v100-latest-1
image: rapidsai/devcontainers:${{needs.compute-matrix.outputs.DEVCONTAINER_VERSION}}-cpp-${{matrix.compiler.name}}${{matrix.compiler.version}}-cuda${{matrix.cuda}}-${{matrix.os}}
command: |
cmake -S . --preset=cccl-infra -DCCCL_EXAMPLE_CPM_TAG=${GITHUB_SHA}
ctest --preset=cccl-infra
command: ./ci/test_infra.sh -arch "${{matrix.cuda_archs}}"

verify-devcontainers:
name: Verify Dev Containers
Expand Down
14 changes: 14 additions & 0 deletions ci/test_infra.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash

source "$(dirname "$0")/build_common.sh"

print_environment_details

PRESET="cccl-infra"
CMAKE_OPTIONS=""

configure_and_build_preset "Infra" "$PRESET" "$CMAKE_OPTIONS"

test_preset Infra "${PRESET}"

print_time_summary

0 comments on commit 63a957e

Please sign in to comment.