forked from rapidsai/cugraph
-
Notifications
You must be signed in to change notification settings - Fork 0
/
conda_build.sh
executable file
·32 lines (24 loc) · 907 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
#!/usr/bin/env bash
set -xe
CUDA_REL=${CUDA_VERSION%.*}
conda install conda-build anaconda-client conda-verify -y
conda build -c nvidia -c rapidsai -c rapidsai-nightly/label/cuda${CUDA_REL} -c conda-forge -c defaults --python=${PYTHON} conda/recipes/cugraph
if [ "$UPLOAD_PACKAGE" == '1' ]; then
export UPLOADFILE=`conda build -c nvidia -c rapidsai -c conda-forge -c defaults --python=${PYTHON} conda/recipes/cugraph --output`
SOURCE_BRANCH=master
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}
else
echo "Skipping upload"
fi