Skip to content

Commit 7fff84b

Browse files
committed
ci: add release candidate dispatch inputs
1 parent 91be25a commit 7fff84b

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

.github/workflows/build.yaml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,13 @@ on:
2424
required: true
2525
type: string
2626
build_type:
27-
description: "build_type: one of [branch, nightly, pull-request]"
27+
description: "build_type: one of [branch, nightly, pull-request, release-candidate]"
2828
type: string
2929
default: nightly
30+
candidate_train_sha256:
31+
description: "Canonical SHA-256 of the release train; required for release-candidate builds."
32+
type: string
33+
default: ""
3034

3135
concurrency:
3236
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }}
@@ -55,6 +59,7 @@ jobs:
5559
node_type: cpu16
5660
script: ci/build_cpp.sh
5761
sha: ${{ inputs.sha }}
62+
candidate-train-sha256: ${{ inputs.candidate_train_sha256 }}
5863

5964
rocky8-clib-standalone-build-matrix:
6065
permissions:
@@ -99,6 +104,7 @@ jobs:
99104
}]
100105
}
101106
sha: ${{ inputs.sha }}
107+
candidate-train-sha256: ${{ inputs.candidate_train_sha256 }}
102108
rust-build-matrix:
103109
needs: cpp-build
104110
permissions:
@@ -208,6 +214,7 @@ jobs:
208214
}]
209215
}
210216
sha: ${{ inputs.sha }}
217+
candidate-train-sha256: ${{ inputs.candidate_train_sha256 }}
211218
python-build:
212219
needs: [build-details, cpp-build]
213220
permissions:
@@ -225,6 +232,7 @@ jobs:
225232
date: ${{ inputs.date }}
226233
script: ci/build_python.sh
227234
sha: ${{ inputs.sha }}
235+
candidate-train-sha256: ${{ inputs.candidate_train_sha256 }}
228236
# Build a conda package for each CUDA x ARCH x minimum supported Python version
229237
matrix_filter: group_by({CUDA_VER, ARCH}) | map(min_by(.PY_VER | split(".") | map(tonumber)))
230238
upload-conda:
@@ -293,6 +301,7 @@ jobs:
293301
matrix_filter: group_by([.ARCH, (.CUDA_VER|split(".")|map(tonumber)|.[0])]) | map(max_by(.PY_VER|split(".")|map(tonumber)))
294302
package-name: libcuvs
295303
package-type: cpp
304+
candidate-train-sha256: ${{ inputs.candidate_train_sha256 }}
296305
wheel-publish-libcuvs:
297306
needs: wheel-build-libcuvs
298307
permissions:
@@ -333,6 +342,7 @@ jobs:
333342
script: ci/build_wheel_cuvs.sh
334343
package-name: cuvs
335344
package-type: python
345+
candidate-train-sha256: ${{ inputs.candidate_train_sha256 }}
336346
# Build a wheel for each CUDA x ARCH x minimum supported Python version
337347
matrix_filter: group_by({CUDA_VER, ARCH}) | map(min_by(.PY_VER | split(".") | map(tonumber)))
338348
wheel-publish-cuvs:

0 commit comments

Comments
 (0)