Skip to content

Commit

Permalink
Build conda packages using mambabuild
Browse files Browse the repository at this point in the history
Signed-off-by: Jordan Jacobelli <[email protected]>
  • Loading branch information
jjacobelli committed Jan 14, 2022
1 parent 5584a0c commit 8995876
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
11 changes: 7 additions & 4 deletions ci/cpu/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,25 +54,28 @@ conda list --show-channel-urls
# FIX Added to deal with Anancoda SSL verification issues during conda builds
conda config --set ssl_verify False

# TODO: Move this to gpuci-build-env
conda install -c conda-forge -y mamba boa

################################################################################
# BUILD - Conda package builds (conda deps: librmm <- rmm)
################################################################################

if [[ "$BUILD_LIBRMM" == "1" ]]; then
gpuci_logger "Build conda pkg for librmm"
if [[ -z "$PROJECT_FLASH" || "$PROJECT_FLASH" == "0" ]]; then
gpuci_conda_retry build conda/recipes/librmm --python=$PYTHON
gpuci_conda_retry mambabuild conda/recipes/librmm --python=$PYTHON
else
gpuci_conda_retry build --dirty --no-remove-work-dir conda/recipes/librmm
gpuci_conda_retry mambabuild --dirty --no-remove-work-dir conda/recipes/librmm
fi
fi

if [[ "$BUILD_RMM" == "1" ]]; then
gpuci_logger "Build conda pkg for rmm"
if [[ -z "$PROJECT_FLASH" || "$PROJECT_FLASH" == "0" ]]; then
gpuci_conda_retry build conda/recipes/rmm --python=$PYTHON
gpuci_conda_retry mambabuild conda/recipes/rmm --python=$PYTHON
else
gpuci_conda_retry build --dirty --no-remove-work-dir \
gpuci_conda_retry mambabuild --dirty --no-remove-work-dir \
-c $WORKSPACE/ci/artifacts/rmm/cpu/conda-bld/ conda/recipes/rmm

fi
Expand Down
4 changes: 2 additions & 2 deletions ci/cpu/upload.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ fi

gpuci_logger "Get conda file output locations"

export LIBRMM_FILE=$(conda build conda/recipes/librmm --output)
export RMM_FILES=$(conda build conda/recipes/rmm --python=$PYTHON --output)
export LIBRMM_FILE=$(conda mambabuild conda/recipes/librmm --output)
export RMM_FILES=$(conda mambabuild conda/recipes/rmm --python=$PYTHON --output)

################################################################################
# UPLOAD - Conda packages
Expand Down

0 comments on commit 8995876

Please sign in to comment.