forked from rapidsai/cugraph
-
Notifications
You must be signed in to change notification settings - Fork 0
/
conda_build.sh
executable file
·34 lines (25 loc) · 942 Bytes
/
conda_build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/usr/bin/env bash
# Copyright (c) 2021-2022, NVIDIA CORPORATION
set -xe
CUDA_REL=${CUDA_VERSION%.*}
conda install conda-build anaconda-client conda-verify -y
conda build -c rapidsai -c rapidsai-nightly/label/cuda${CUDA_REL} -c conda-forge -c nvidia --python=${PYTHON} conda/recipes/cugraph
if [ "$UPLOAD_PACKAGE" == '1' ]; then
export UPLOADFILE=`conda build -c rapidsai -c conda-forge -c nvidia --python=${PYTHON} conda/recipes/cugraph --output`
SOURCE_BRANCH=main
test -e ${UPLOADFILE}
LABEL_OPTION="--label dev"
if [ "${LABEL_MAIN}" == '1' ]; then
LABEL_OPTION="--label main"
fi
echo "LABEL_OPTION=${LABEL_OPTION}"
if [ -z "$MY_UPLOAD_KEY" ]; then
echo "No upload key"
return 0
fi
echo "Upload"
echo ${UPLOADFILE}
anaconda -t ${MY_UPLOAD_KEY} upload -u ${CONDA_USERNAME:-rapidsai} ${LABEL_OPTION} --force ${UPLOADFILE} --no-progress
else
echo "Skipping upload"
fi