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
2 changes: 2 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -530,6 +530,7 @@ jobs:

build-images:
needs:
- build-details
- wheel-publish-cuopt
- wheel-publish-cuopt-server
- wheel-publish-cuopt-sh-client
Expand All @@ -546,3 +547,4 @@ jobs:
sha: ${{ inputs.sha }}
date: ${{ inputs.date }}
build_type: ${{ inputs.build_type || 'branch' }}
build-datetime: ${{ needs.build-details.outputs.build-datetime }}
17 changes: 12 additions & 5 deletions .github/workflows/build_test_publish_images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ on:
type: string
build_type:
type: string
build-datetime:
type: string
required: true
description: 'Build datetime from compute-build-details, matching the published wheels'
Comment thread
coderabbitai[bot] marked this conversation as resolved.
arch:
type: string
default: '["amd64", "arm64"]'
Expand Down Expand Up @@ -83,19 +87,22 @@ jobs:

- name: Compute cuopt version
id: compute-cuopt-ver
env:
BUILD_DATETIME: ${{ inputs.build-datetime }}
run: |
Comment thread
coderabbitai[bot] marked this conversation as resolved.
source rapids-datetime-string
# .post<datetime> makes every nightly version unique (see ci/build_wheel.sh); ignored on release builds.
ver=$(RAPIDS_VERSION_SUFFIX=".post${RAPIDS_DATETIME_STRING}" rapids-generate-version)
# .post<datetime> matches the suffix ci/build_wheel.sh gave the published wheels.
# The value comes from the same compute-build-details job that stamped them, so the
# pin resolves to this run's build. It is a no-op on release builds.
ver=$(RAPIDS_VERSION_SUFFIX=".post${BUILD_DATETIME}" rapids-generate-version)
# Remove starting 0s from version 25.08.0a18 -> 25.8.0a18
CUOPT_VER=$(echo "$ver" | sed -E 's/\.0+([0-9])/\.\1/g')
echo "CUOPT_VER=$CUOPT_VER" >> $GITHUB_OUTPUT
echo "CUOPT_VER=$CUOPT_VER" >> "$GITHUB_OUTPUT"
if rapids-is-release-build; then
IMAGE_TAG_PREFIX="$CUOPT_VER"
else
IMAGE_TAG_PREFIX=$(echo "$CUOPT_VER" | sed -E 's/([0-9]+\.[0-9]+\.[0-9]+)a.*/\1a/')
fi
echo "IMAGE_TAG_PREFIX=$IMAGE_TAG_PREFIX" >> $GITHUB_OUTPUT
echo "IMAGE_TAG_PREFIX=$IMAGE_TAG_PREFIX" >> "$GITHUB_OUTPUT"

build-images:
name: Build images
Expand Down