Skip to content

Commit a88ddc9

Browse files
committed
ci: enroll custom release build outputs
1 parent c101a2b commit a88ddc9

4 files changed

Lines changed: 53 additions & 7 deletions

File tree

.github/workflows/build.yaml

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ jobs:
7272
packages: read
7373
pull-requests: read
7474
secrets: inherit # zizmor: ignore[secrets-inherit]
75-
uses: rapidsai/shared-workflows/.github/workflows/custom-job.yaml@main
75+
uses: rapidsai/shared-workflows/.github/workflows/custom-job.yaml@codex/release-build-output-manifests
7676
strategy:
7777
fail-fast: false
7878
matrix: ${{ fromJSON(needs.rocky8-clib-standalone-build-matrix.outputs.matrix) }}
@@ -87,7 +87,16 @@ jobs:
8787
requires_license_builder: true
8888
script: "ci/build_standalone_c.sh"
8989
artifact-name: "libcuvs_c_${{ matrix.CUDA_VER }}_${{ matrix.ARCH }}.tar.gz"
90-
file_to_upload: "libcuvs_c.tar.gz"
90+
file_to_upload: |
91+
libcuvs_c.tar.gz
92+
libcuvs_c.release-package.json
93+
release-build-output: >-
94+
{
95+
"artifact_type": "custom",
96+
"component_id": "archive:libcuvs-c",
97+
"package_file": "libcuvs_c.release-package.json",
98+
"artifacts": [{"path": "libcuvs_c.tar.gz"}]
99+
}
91100
sha: ${{ inputs.sha }}
92101
rust-build-matrix:
93102
needs: cpp-build
@@ -173,7 +182,7 @@ jobs:
173182
packages: read
174183
pull-requests: read
175184
secrets: inherit # zizmor: ignore[secrets-inherit]
176-
uses: rapidsai/shared-workflows/.github/workflows/custom-job.yaml@main
185+
uses: rapidsai/shared-workflows/.github/workflows/custom-job.yaml@codex/release-build-output-manifests
177186
# Artifacts are not published from these jobs, so it's safe to run for multiple CUDA versions.
178187
# If these jobs start producing artifacts, the names will have to differentiate between CUDA versions.
179188
strategy:
@@ -188,6 +197,14 @@ jobs:
188197
script: "ci/build_java.sh"
189198
artifact-name: "cuvs-java-cuda${{ matrix.CUDA_VER }}"
190199
file_to_upload: "java/cuvs-java/target/"
200+
release-build-output: >-
201+
{
202+
"artifact_type": "custom",
203+
"component_id": "maven:cuvs-java",
204+
"output_directory": "java/cuvs-java/target",
205+
"package_file": "cuvs-java.release-package.json",
206+
"artifacts": [{"path": "cuvs-java-*-x86_64-cuda*.jar"}]
207+
}
191208
sha: ${{ inputs.sha }}
192209
python-build:
193210
needs: [build-details, cpp-build]

.github/workflows/pr.yaml

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ jobs:
520520
packages: read
521521
pull-requests: read
522522
secrets: inherit # zizmor: ignore[secrets-inherit]
523-
uses: rapidsai/shared-workflows/.github/workflows/custom-job.yaml@main
523+
uses: rapidsai/shared-workflows/.github/workflows/custom-job.yaml@codex/release-build-output-manifests
524524
strategy:
525525
fail-fast: false
526526
matrix: ${{ fromJSON(needs.rocky8-clib-standalone-build-matrix.outputs.matrix) }}
@@ -534,7 +534,16 @@ jobs:
534534
requires_license_builder: true
535535
script: "ci/build_standalone_c.sh --build-tests"
536536
artifact-name: "libcuvs_c_${{ matrix.CUDA_VER }}_${{ matrix.ARCH }}.tar.gz"
537-
file_to_upload: "libcuvs_c.tar.gz"
537+
file_to_upload: |
538+
libcuvs_c.tar.gz
539+
libcuvs_c.release-package.json
540+
release-build-output: >-
541+
{
542+
"artifact_type": "custom",
543+
"component_id": "archive:libcuvs-c",
544+
"package_file": "libcuvs_c.release-package.json",
545+
"artifacts": [{"path": "libcuvs_c.tar.gz"}]
546+
}
538547
sha: ${{ inputs.sha }}
539548
rocky8-clib-tests-matrix:
540549
needs: [rocky8-clib-standalone-build, changed-files]
@@ -585,7 +594,7 @@ jobs:
585594
packages: read
586595
pull-requests: read
587596
secrets: inherit # zizmor: ignore[secrets-inherit]
588-
uses: rapidsai/shared-workflows/.github/workflows/custom-job.yaml@main
597+
uses: rapidsai/shared-workflows/.github/workflows/custom-job.yaml@codex/release-build-output-manifests
589598
# Artifacts are not published from these jobs, so it's safe to run for multiple CUDA versions.
590599
# If these jobs start producing artifacts, the names will have to differentiate between CUDA versions.
591600
strategy:
@@ -599,6 +608,14 @@ jobs:
599608
script: "ci/test_java.sh"
600609
artifact-name: "cuvs-java-cuda${{ matrix.CUDA_VER }}"
601610
file_to_upload: "java/cuvs-java/target/"
611+
release-build-output: >-
612+
{
613+
"artifact_type": "custom",
614+
"component_id": "maven:cuvs-java",
615+
"output_directory": "java/cuvs-java/target",
616+
"package_file": "cuvs-java.release-package.json",
617+
"artifacts": [{"path": "cuvs-java-*-x86_64-cuda*.jar"}]
618+
}
602619
rust-build-matrix:
603620
needs: [conda-cpp-build, changed-files]
604621
permissions:

ci/build_java.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
# SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION.
2+
# SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
33
# SPDX-License-Identifier: Apache-2.0
44

55
set -euo pipefail
@@ -58,6 +58,14 @@ export RAPIDS_CUDA_MAJOR
5858

5959
bash ./build.sh java "${EXTRA_BUILD_ARGS[@]}"
6060

61+
if [[ "${EXITCODE}" -eq 0 ]]; then
62+
JAVA_PACKAGE_VERSION="$(sed -n 's/.*<version>\([^<]*\)<\/version>.*/\1/p' java/cuvs-java/pom.xml | head -n 1)"
63+
jq -n \
64+
--arg version "${JAVA_PACKAGE_VERSION}" \
65+
'{ecosystem: "maven", name: "com.nvidia.cuvs:cuvs-java", version: $version}' \
66+
>java/cuvs-java/target/cuvs-java.release-package.json
67+
fi
68+
6169
sccache --show-adv-stats
6270
sccache --stop-server >/dev/null 2>&1 || true
6371

ci/build_standalone_c.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,3 +99,7 @@ license-builder . --output-json c/build/install/licenses.json --output-txt c/bui
9999
rapids-logger "Begin c tarball creation"
100100
tar czf libcuvs_c.tar.gz -C c/build/install/ .
101101
ls -lh libcuvs_c.tar.gz
102+
jq -n \
103+
--arg version "${RAPIDS_PACKAGE_VERSION}" \
104+
'{ecosystem: "archive", name: "libcuvs-c", version: $version}' \
105+
>libcuvs_c.release-package.json

0 commit comments

Comments
 (0)