Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 12 additions & 3 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,15 @@ concurrency:
cancel-in-progress: true
permissions: {}
jobs:
build-details:
uses: rapidsai/shared-workflows/.github/workflows/compute-build-details.yaml@main
cpp-build:
needs: [build-details]
secrets: inherit # zizmor: ignore[secrets-inherit]
uses: rapidsai/shared-workflows/.github/workflows/conda-cpp-build.yaml@main
with:
build_type: ${{ inputs.build_type || 'branch' }}
build-datetime: ${{ needs.build-details.outputs.build-datetime }}
branch: ${{ inputs.branch }}
date: ${{ inputs.date }}
node_type: cpu16
Expand All @@ -48,11 +52,12 @@ jobs:
packages: read
pull-requests: read
python-build:
needs: [cpp-build]
needs: [build-details, cpp-build]
secrets: inherit # zizmor: ignore[secrets-inherit]
uses: rapidsai/shared-workflows/.github/workflows/conda-python-build.yaml@main
with:
build_type: ${{ inputs.build_type || 'branch' }}
build-datetime: ${{ needs.build-details.outputs.build-datetime }}
branch: ${{ inputs.branch }}
date: ${{ inputs.date }}
script: ci/build_python.sh
Expand Down Expand Up @@ -103,12 +108,14 @@ jobs:
packages: read
pull-requests: read
wheel-build-libcugraph:
needs: [build-details]
secrets: inherit # zizmor: ignore[secrets-inherit]
uses: rapidsai/shared-workflows/.github/workflows/wheels-build.yaml@main
with:
# build for every combination of arch and CUDA version, but only for the latest Python version
matrix_filter: group_by([.ARCH, (.CUDA_VER|split(".")|map(tonumber)|.[0])]) | map(max_by(.PY_VER|split(".")|map(tonumber)))
build_type: ${{ inputs.build_type || 'branch' }}
build-datetime: ${{ needs.build-details.outputs.build-datetime }}
branch: ${{ inputs.branch }}
sha: ${{ inputs.sha }}
date: ${{ inputs.date }}
Expand Down Expand Up @@ -143,11 +150,12 @@ jobs:
packages: read
pull-requests: read
wheel-build-pylibcugraph:
needs: wheel-build-libcugraph
needs: [build-details, wheel-build-libcugraph]
secrets: inherit # zizmor: ignore[secrets-inherit]
uses: rapidsai/shared-workflows/.github/workflows/wheels-build.yaml@main
with:
build_type: ${{ inputs.build_type || 'branch' }}
build-datetime: ${{ needs.build-details.outputs.build-datetime }}
branch: ${{ inputs.branch }}
sha: ${{ inputs.sha }}
date: ${{ inputs.date }}
Expand Down Expand Up @@ -184,11 +192,12 @@ jobs:
packages: read
pull-requests: read
wheel-build-cugraph:
needs: wheel-build-pylibcugraph
needs: [build-details, wheel-build-pylibcugraph]
secrets: inherit # zizmor: ignore[secrets-inherit]
uses: rapidsai/shared-workflows/.github/workflows/wheels-build.yaml@main
with:
build_type: ${{ inputs.build_type || 'branch' }}
build-datetime: ${{ needs.build-details.outputs.build-datetime }}
branch: ${{ inputs.branch }}
sha: ${{ inputs.sha }}
date: ${{ inputs.date }}
Expand Down
33 changes: 28 additions & 5 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ jobs:
# Please keep pr-builder as the top job here
pr-builder:
needs:
- build-details
- check-nightly-ci
- changed-files
- checks
Expand Down Expand Up @@ -43,6 +44,8 @@ jobs:
- name: Telemetry setup
if: ${{ vars.TELEMETRY_ENABLED == 'true' }}
uses: rapidsai/shared-actions/telemetry-dispatch-stash-base-env-vars@main
build-details:
uses: rapidsai/shared-workflows/.github/workflows/compute-build-details.yaml@main
check-nightly-ci:
runs-on: ubuntu-latest
permissions:
Expand Down Expand Up @@ -78,7 +81,10 @@ jobs:
- '!.github/ops-bot.yaml'
- '!.github/release.yml'
- '!.github/workflows/add-to-project.yml'
- '!.github/workflows/build.yaml'
- '!.github/workflows/labeler.yml'
- '!.github/workflows/new-issues-to-triage-projects.yml'
- '!.github/workflows/test.yaml'
- '!.github/workflows/trigger-breaking-change-alert.yaml'
- '!.pre-commit-config.yaml'
- '!.yamllint.yaml'
Expand Down Expand Up @@ -106,7 +112,10 @@ jobs:
- '!.github/ops-bot.yaml'
- '!.github/release.yml'
- '!.github/workflows/add-to-project.yml'
- '!.github/workflows/build.yaml'
- '!.github/workflows/labeler.yml'
- '!.github/workflows/new-issues-to-triage-projects.yml'
- '!.github/workflows/test.yaml'
- '!.github/workflows/trigger-breaking-change-alert.yaml'
- '!.pre-commit-config.yaml'
- '!.yamllint.yaml'
Expand Down Expand Up @@ -141,7 +150,10 @@ jobs:
- '!.github/ops-bot.yaml'
- '!.github/release.yml'
- '!.github/workflows/add-to-project.yml'
- '!.github/workflows/build.yaml'
- '!.github/workflows/labeler.yml'
- '!.github/workflows/new-issues-to-triage-projects.yml'
- '!.github/workflows/test.yaml'
- '!.github/workflows/trigger-breaking-change-alert.yaml'
- '!.pre-commit-config.yaml'
- '!.yamllint.yaml'
Expand Down Expand Up @@ -170,7 +182,10 @@ jobs:
- '!.github/ops-bot.yaml'
- '!.github/release.yml'
- '!.github/workflows/add-to-project.yml'
- '!.github/workflows/build.yaml'
- '!.github/workflows/labeler.yml'
- '!.github/workflows/new-issues-to-triage-projects.yml'
- '!.github/workflows/test.yaml'
- '!.github/workflows/trigger-breaking-change-alert.yaml'
- '!.pre-commit-config.yaml'
- '!.yamllint.yaml'
Expand Down Expand Up @@ -203,7 +218,10 @@ jobs:
- '!.github/ops-bot.yaml'
- '!.github/release.yml'
- '!.github/workflows/add-to-project.yml'
- '!.github/workflows/build.yaml'
- '!.github/workflows/labeler.yml'
- '!.github/workflows/new-issues-to-triage-projects.yml'
- '!.github/workflows/test.yaml'
- '!.github/workflows/trigger-breaking-change-alert.yaml'
- '!.pre-commit-config.yaml'
- '!.yamllint.yaml'
Expand Down Expand Up @@ -237,11 +255,12 @@ jobs:
permissions:
contents: read
conda-cpp-build:
needs: checks
needs: [build-details, checks]
secrets: inherit # zizmor: ignore[secrets-inherit]
uses: rapidsai/shared-workflows/.github/workflows/conda-cpp-build.yaml@main
with:
build_type: pull-request
build-datetime: ${{ needs.build-details.outputs.build-datetime }}
node_type: cpu16
script: ci/build_cpp.sh
permissions:
Expand Down Expand Up @@ -278,11 +297,12 @@ jobs:
packages: read
pull-requests: read
conda-python-build:
needs: conda-cpp-build
needs: [build-details, conda-cpp-build]
secrets: inherit # zizmor: ignore[secrets-inherit]
uses: rapidsai/shared-workflows/.github/workflows/conda-python-build.yaml@main
with:
build_type: pull-request
build-datetime: ${{ needs.build-details.outputs.build-datetime }}
script: ci/build_python.sh
# Build a conda package for each CUDA x ARCH x minimum supported Python version
matrix_filter: group_by({CUDA_VER, ARCH}) | map(min_by(.PY_VER | split(".") | map(tonumber)))
Expand Down Expand Up @@ -341,13 +361,14 @@ jobs:
packages: read
pull-requests: read
wheel-build-libcugraph:
needs: checks
needs: [build-details, checks]
secrets: inherit # zizmor: ignore[secrets-inherit]
uses: rapidsai/shared-workflows/.github/workflows/wheels-build.yaml@main
with:
# build for every combination of arch and CUDA version, but only for the latest Python
matrix_filter: group_by([.ARCH, (.CUDA_VER|split(".")|map(tonumber)|.[0])]) | map(max_by(.PY_VER|split(".")|map(tonumber)))
build_type: pull-request
build-datetime: ${{ needs.build-details.outputs.build-datetime }}
node_type: cpu16
script: ci/build_wheel_libcugraph.sh
package-name: libcugraph
Expand All @@ -359,11 +380,12 @@ jobs:
packages: read
pull-requests: read
wheel-build-pylibcugraph:
needs: wheel-build-libcugraph
needs: [build-details, wheel-build-libcugraph]
secrets: inherit # zizmor: ignore[secrets-inherit]
uses: rapidsai/shared-workflows/.github/workflows/wheels-build.yaml@main
with:
build_type: pull-request
build-datetime: ${{ needs.build-details.outputs.build-datetime }}
node_type: cpu8
script: ci/build_wheel_pylibcugraph.sh
package-name: pylibcugraph
Expand Down Expand Up @@ -391,11 +413,12 @@ jobs:
packages: read
pull-requests: read
wheel-build-cugraph:
needs: wheel-build-pylibcugraph
needs: [build-details, wheel-build-pylibcugraph]
secrets: inherit # zizmor: ignore[secrets-inherit]
uses: rapidsai/shared-workflows/.github/workflows/wheels-build.yaml@main
with:
build_type: pull-request
build-datetime: ${{ needs.build-details.outputs.build-datetime }}
node_type: cpu8
script: ci/build_wheel_cugraph.sh
package-name: cugraph
Expand Down
4 changes: 2 additions & 2 deletions ci/build_cpp.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#!/bin/bash
# SPDX-FileCopyrightText: Copyright (c) 2022-2026, NVIDIA CORPORATION.
# SPDX-FileCopyrightText: Copyright (c) 2022-2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

set -euo pipefail

source rapids-configure-sccache
source rapids-date-string
source rapids-datetime-string

export CMAKE_GENERATOR=Ninja

Expand Down
4 changes: 2 additions & 2 deletions ci/build_python.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#!/bin/bash
# SPDX-FileCopyrightText: Copyright (c) 2022-2026, NVIDIA CORPORATION.
# SPDX-FileCopyrightText: Copyright (c) 2022-2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

set -euo pipefail

source rapids-configure-sccache
source rapids-date-string
source rapids-datetime-string

export CMAKE_GENERATOR=Ninja

Expand Down
7 changes: 4 additions & 3 deletions ci/build_wheel.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
# SPDX-FileCopyrightText: Copyright (c) 2023-2026, NVIDIA CORPORATION.
# SPDX-FileCopyrightText: Copyright (c) 2023-2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

set -euo pipefail
Expand All @@ -24,13 +24,14 @@ while [[ $# -gt 0 ]]; do
done

source rapids-configure-sccache
source rapids-date-string
source rapids-datetime-string
source rapids-init-pip

export SCCACHE_S3_PREPROCESSOR_CACHE_KEY_PREFIX="${package_name}/${RAPIDS_CONDA_ARCH}/cuda${RAPIDS_CUDA_VERSION%%.*}/wheel/preprocessor-cache"
export SCCACHE_S3_USE_PREPROCESSOR_CACHE_MODE=true

rapids-generate-version > ./VERSION
RAPIDS_VERSION_SUFFIX=".post${RAPIDS_DATETIME_STRING}" \
rapids-generate-version > ./VERSION

cd "${package_dir}"

Expand Down
4 changes: 2 additions & 2 deletions conda/recipes/cugraph/recipe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ context:
minor_version: ${{ (version | split("."))[:2] | join(".") }}
cuda_version: ${{ (env.get("RAPIDS_CUDA_VERSION") | split("."))[:2] | join(".") }}
cuda_major: '${{ (env.get("RAPIDS_CUDA_VERSION") | split("."))[0] }}'
date_string: '${{ env.get("RAPIDS_DATE_STRING") }}'
datetime_string: '${{ env.get("RAPIDS_DATETIME_STRING") }}'
head_rev: '${{ git.head_rev(".")[:8] }}'
py_abi_min: ${{ env.get("RAPIDS_PY_VERSION") }}
py_buildstring: ${{ py_abi_min | version_to_buildstring }}
Expand All @@ -23,7 +23,7 @@ source:
build:
python:
version_independent: true
string: cuda${{ cuda_major }}_cp${{ py_buildstring }}_abi3_${{ date_string }}_${{ head_rev }}
string: cuda${{ cuda_major }}_cp${{ py_buildstring }}_abi3_${{ datetime_string }}_${{ head_rev }}
files:
exclude:
- '*libarrow.so.*gdb.py'
Expand Down
10 changes: 5 additions & 5 deletions conda/recipes/libcugraph/recipe.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: Copyright (c) 2018-2026, NVIDIA CORPORATION.
# SPDX-FileCopyrightText: Copyright (c) 2018-2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
schema_version: 1

Expand All @@ -7,7 +7,7 @@ context:
minor_version: ${{ (version | split("."))[:2] | join(".") }}
cuda_version: ${{ (env.get("RAPIDS_CUDA_VERSION") | split("."))[:2] | join(".") }}
cuda_major: '${{ (env.get("RAPIDS_CUDA_VERSION") | split("."))[0] }}'
date_string: '${{ env.get("RAPIDS_DATE_STRING") }}'
datetime_string: '${{ env.get("RAPIDS_DATETIME_STRING") }}'
head_rev: '${{ git.head_rev(".")[:8] }}'

recipe:
Expand Down Expand Up @@ -107,7 +107,7 @@ outputs:
- lib/libcugraph_common.so
- lib/libcugraph_mg.so
- lib/libcugraph_mtmg.so
string: cuda${{ cuda_major }}_${{ date_string }}_${{ head_rev }}
string: cuda${{ cuda_major }}_${{ datetime_string }}_${{ head_rev }}
requirements:
build:
- cmake ${{ cmake_version }}
Expand Down Expand Up @@ -169,7 +169,7 @@ outputs:
ignore:
# See https://github.com/rapidsai/build-planning/issues/160
- lib/libcugraph_etl.so
string: cuda${{ cuda_major }}_${{ date_string }}_${{ head_rev }}
string: cuda${{ cuda_major }}_${{ datetime_string }}_${{ head_rev }}
requirements:
build:
- cmake ${{ cmake_version }}
Expand Down Expand Up @@ -220,7 +220,7 @@ outputs:
cmake --install cpp/libcugraph_etl/build --component testing
dynamic_linking:
overlinking_behavior: "error"
string: cuda${{ cuda_major }}_${{ date_string }}_${{ head_rev }}
string: cuda${{ cuda_major }}_${{ datetime_string }}_${{ head_rev }}
requirements:
build:
- cmake ${{ cmake_version }}
Expand Down
4 changes: 2 additions & 2 deletions conda/recipes/pylibcugraph/recipe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ context:
minor_version: ${{ (version | split("."))[:2] | join(".") }}
cuda_version: ${{ (env.get("RAPIDS_CUDA_VERSION") | split("."))[:2] | join(".") }}
cuda_major: '${{ (env.get("RAPIDS_CUDA_VERSION") | split("."))[0] }}'
date_string: '${{ env.get("RAPIDS_DATE_STRING") }}'
datetime_string: '${{ env.get("RAPIDS_DATETIME_STRING") }}'
head_rev: '${{ git.head_rev(".")[:8] }}'
py_abi_min: ${{ env.get("RAPIDS_PY_VERSION") }}
py_buildstring: ${{ py_abi_min | version_to_buildstring }}
Expand All @@ -23,7 +23,7 @@ source:
build:
python:
version_independent: true
string: cuda${{ cuda_major }}_cp${{ py_buildstring }}_abi3_${{ date_string }}_${{ head_rev }}
string: cuda${{ cuda_major }}_cp${{ py_buildstring }}_abi3_${{ datetime_string }}_${{ head_rev }}
script:
content: |
./build.sh pylibcugraph
Expand Down
Loading