Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Moving wheel builds to specified location and uploading build artifacts to Github #4993

Open
wants to merge 4 commits into
base: branch-25.06
Choose a base branch
from
Open
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
6 changes: 6 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ jobs:
date: ${{ inputs.date }}
script: ci/build_wheel_libcugraph.sh
node_type: cpu32
package-type: cpp
wheel-name: libcugraph
wheel-publish-libcugraph:
needs: wheel-build-libcugraph
secrets: inherit
Expand All @@ -98,6 +100,8 @@ jobs:
sha: ${{ inputs.sha }}
date: ${{ inputs.date }}
script: ci/build_wheel_pylibcugraph.sh
package-type: python
wheel-name: pylibcugraph
wheel-publish-pylibcugraph:
needs: wheel-build-pylibcugraph
secrets: inherit
Expand All @@ -119,6 +123,8 @@ jobs:
sha: ${{ inputs.sha }}
date: ${{ inputs.date }}
script: ci/build_wheel_cugraph.sh
package-type: python
wheel-name: cugraph
wheel-publish-cugraph:
needs: wheel-build-cugraph
secrets: inherit
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -165,13 +165,17 @@ jobs:
matrix_filter: group_by([.ARCH, (.CUDA_VER|split(".")|map(tonumber)|.[0])]) | map(max_by(.PY_VER|split(".")|map(tonumber)))
build_type: pull-request
script: ci/build_wheel_libcugraph.sh
package-type: cpp
wheel-name: libcugraph
wheel-build-pylibcugraph:
needs: wheel-build-libcugraph
secrets: inherit
uses: rapidsai/shared-workflows/.github/workflows/[email protected]
with:
build_type: pull-request
script: ci/build_wheel_pylibcugraph.sh
package-type: python
wheel-name: pylibcugraph
wheel-tests-pylibcugraph:
needs: [wheel-build-pylibcugraph, changed-files]
secrets: inherit
Expand All @@ -187,6 +191,8 @@ jobs:
with:
build_type: pull-request
script: ci/build_wheel_cugraph.sh
package-type: python
wheel-name: cugraph
wheel-tests-cugraph:
needs: [wheel-build-cugraph, changed-files]
secrets: inherit
Expand Down
7 changes: 4 additions & 3 deletions ci/build_wheel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ package_name=$1
package_dir=$2
package_type=$3

wheel_dir=${RAPIDS_WHEEL_BLD_OUTPUT_DIR}

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

Expand Down Expand Up @@ -56,6 +58,5 @@ if [[ "${package_dir}" != "python/libcugraph" ]]; then
)
fi

mkdir -p final_dist
python -m auditwheel repair -w final_dist "${EXCLUDE_ARGS[@]}" dist/*
RAPIDS_PY_WHEEL_NAME="${package_name}_${RAPIDS_PY_CUDA_SUFFIX}" rapids-upload-wheels-to-s3 "${package_type}" final_dist
python -m auditwheel repair -w "${wheel_dir}" "${EXCLUDE_ARGS[@]}" dist/*
RAPIDS_PY_WHEEL_NAME="${package_name}_${RAPIDS_PY_CUDA_SUFFIX}" rapids-upload-wheels-to-s3 "${package_type}" "${wheel_dir}"
3 changes: 2 additions & 1 deletion ci/build_wheel_cugraph.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
set -euo pipefail

package_dir="python/cugraph"
wheel_dir=${RAPIDS_WHEEL_BLD_OUTPUT_DIR}

RAPIDS_PY_CUDA_SUFFIX="$(rapids-wheel-ctk-name-gen ${RAPIDS_CUDA_VERSION})"

Expand All @@ -22,4 +23,4 @@ EOF
export PIP_CONSTRAINT="${PWD}/constraints.txt"

./ci/build_wheel.sh cugraph ${package_dir} python
./ci/validate_wheel.sh ${package_dir} final_dist
./ci/validate_wheel.sh ${package_dir} "${wheel_dir}"
3 changes: 2 additions & 1 deletion ci/build_wheel_libcugraph.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ set -euo pipefail

package_name="libcugraph"
package_dir="python/libcugraph"
wheel_dir=${RAPIDS_WHEEL_BLD_OUTPUT_DIR}

rapids-logger "Generating build requirements"
matrix_selectors="cuda=${RAPIDS_CUDA_VERSION%.*};arch=$(arch);py=${RAPIDS_PY_VERSION};cuda_suffixed=true"
Expand All @@ -29,4 +30,4 @@ rapids-logger "Done build requirements"
export PIP_NO_BUILD_ISOLATION=0

./ci/build_wheel.sh libcugraph ${package_dir} cpp
./ci/validate_wheel.sh ${package_dir} final_dist
./ci/validate_wheel.sh ${package_dir} "${wheel_dir}"
3 changes: 2 additions & 1 deletion ci/build_wheel_pylibcugraph.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
set -euo pipefail

package_dir="python/pylibcugraph"
wheel_dir=${RAPIDS_WHEEL_BLD_OUTPUT_DIR}

RAPIDS_PY_CUDA_SUFFIX="$(rapids-wheel-ctk-name-gen ${RAPIDS_CUDA_VERSION})"

Expand All @@ -20,4 +21,4 @@ EOF
export PIP_CONSTRAINT="${PWD}/constraints.txt"

./ci/build_wheel.sh pylibcugraph ${package_dir} python
./ci/validate_wheel.sh ${package_dir} final_dist
./ci/validate_wheel.sh ${package_dir} "${wheel_dir}"
Loading