Skip to content

Commit

Permalink
Swap in rattler-build for mambabuild
Browse files Browse the repository at this point in the history
  • Loading branch information
gforsyth committed Jan 29, 2025
1 parent 2d251cf commit be8c03f
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 4 deletions.
24 changes: 22 additions & 2 deletions ci/build_cpp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,28 @@ rapids-logger "Begin cpp build"

sccache --zero-stats

# This calls mambabuild when boa is installed (as is the case in the CI images)
RAPIDS_PACKAGE_VERSION=$(rapids-generate-version) rapids-conda-retry mambabuild conda/recipes/librmm
RAPIDS_PACKAGE_VERSION=$(rapids-generate-version)
export RAPIDS_PACKAGE_VERSION

# rattler-build doesn't have built-in support for GIT_DESCRIBE_NUMBER and
# GIT_DESCRIBE_HASH so we set them in the environment first
# shellcheck disable=SC2034
IFS=- read -r TAG_VERSION GIT_DESCRIBE_NUMBER GIT_DESCRIBE_HASH <<< "$(git describe --tags)"
unset TAG_VERSION
export GIT_DESCRIBE_NUMBER
export GIT_DESCRIBE_HASH

rattler-build build --recipe conda/recipes/librmm \
--experimental \
--no-build-id \
--channel-priority disabled

# This is probably set via `CONDA_BLD_PATH`
# --output_dir /tmp/conda-bld-output
# These are probably set via `rapids-configure-conda-channels`
# -c rapidsai \
# -c conda-forge \
# -c nvidia

sccache --show-adv-stats

Expand Down
26 changes: 24 additions & 2 deletions ci/build_python.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,30 @@ CPP_CHANNEL=$(rapids-download-conda-from-s3 cpp)

sccache --zero-stats

# This calls mambabuild when boa is installed (as is the case in the CI images)
RAPIDS_PACKAGE_VERSION=$(head -1 ./VERSION) rapids-conda-retry mambabuild -c "${CPP_CHANNEL}" conda/recipes/rmm
RAPIDS_PACKAGE_VERSION=$(head -1 ./VERSION)
export RAPIDS_PACKAGE_VERSION

# rattler-build doesn't have built-in support for GIT_DESCRIBE_NUMBER and
# GIT_DESCRIBE_HASH so we set them in the environment first
# shellcheck disable=SC2034
IFS=- read -r TAG_VERSION GIT_DESCRIBE_NUMBER GIT_DESCRIBE_HASH <<< "$(git describe --tags)"
unset TAG_VERSION
export GIT_DESCRIBE_NUMBER
export GIT_DESCRIBE_HASH

rattler-build build --recipe conda/recipes/rmm \
--experimental \
--no-build-id \
--channel-priority disabled \
-c "${CPP_CHANNEL}"
# ^^^ Probably need this, but locally `rattler-build` finds the CPP builds automatically
#
# This is probably set via `CONDA_BLD_PATH`
# --output_dir /tmp/conda-bld-output
# These are probably set via `rapids-configure-conda-channels`
# -c rapidsai \
# -c conda-forge \
# -c nvidia

sccache --show-adv-stats

Expand Down

0 comments on commit be8c03f

Please sign in to comment.