Skip to content

Commit

Permalink
Upload conda packages for rapids_core_dependencies. (#414)
Browse files Browse the repository at this point in the history
This PR uploads conda packages as CI artifacts for `rapids_core_dependencies`.

I also aligned some bits of rapids-cmake's testing scripts/workflows with other RAPIDS repos.

Authors:
  - Bradley Dice (https://github.com/bdice)

Approvers:
  - AJ Schmidt (https://github.com/ajschmidt8)
  - Vyas Ramasubramani (https://github.com/vyasr)

URL: #414
  • Loading branch information
bdice committed Jun 1, 2023
1 parent ec72f2e commit fbbf6ea
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 5 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,15 @@ jobs:
uses: rapidsai/shared-action-workflows/.github/workflows/[email protected]
with:
build_type: ${{ inputs.build_type || 'branch' }}
repo: rapidsai/rapids-cmake
branch: ${{ inputs.branch }}
date: ${{ inputs.date }}
sha: ${{ inputs.sha }}
upload-conda:
needs: [cpp-build]
secrets: inherit
uses: rapidsai/shared-action-workflows/.github/workflows/[email protected]
with:
build_type: ${{ inputs.build_type || 'branch' }}
branch: ${{ inputs.branch }}
date: ${{ inputs.date }}
sha: ${{ inputs.sha }}
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: nightly
name: test

on:
workflow_dispatch:
Expand All @@ -19,7 +19,6 @@ jobs:
uses: rapidsai/shared-action-workflows/.github/workflows/[email protected]
with:
build_type: nightly
repo: rapidsai/rapids-cmake
branch: ${{ inputs.branch }}
date: ${{ inputs.date }}
sha: ${{ inputs.sha }}
5 changes: 5 additions & 0 deletions ci/build_cpp.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
#!/bin/bash
# Copyright (c) 2023, NVIDIA CORPORATION.

set -euo pipefail

source rapids-env-update

export CMAKE_GENERATOR=Ninja

rapids-print-env

rapids-logger "Begin cpp build"

rapids-mamba-retry mambabuild conda/recipes/rapids_core_dependencies

rapids-upload-conda-to-s3 cpp
7 changes: 5 additions & 2 deletions ci/test_cpp.sh
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
#!/bin/bash
# Copyright (c) 2023, NVIDIA CORPORATION.

set -euo pipefail

rapids-logger "Create test conda environment"
. /opt/conda/etc/profile.d/conda.sh

rapids-logger "Generate C++ testing dependencies"
rapids-dependency-file-generator \
--output conda \
--file_key test \
--matrix "cuda=${RAPIDS_CUDA_VERSION%.*};arch=$(arch)" | tee env.yaml

rapids-mamba-retry env create --force -f env.yaml -n test
set +eu

# Temporarily allow unbound variables for conda activation.
set +u
conda activate test
set -u

Expand Down

0 comments on commit fbbf6ea

Please sign in to comment.