forked from rapidsai/cugraph
-
Notifications
You must be signed in to change notification settings - Fork 0
/
conda_build.sh
executable file
·34 lines (28 loc) · 979 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
set -xe
conda install conda-build anaconda-client conda-verify -y
conda build -c nvidia -c rapidsai -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}
CUDA_REL=${CUDA:0:3}
if [ "${CUDA:0:2}" == '10' ]; then
# CUDA 10 release
CUDA_REL=${CUDA:0:4}
fi
LABEL_OPTION="--label dev --label cuda${CUDA_REL}"
if [ "${LABEL_MAIN}" == '1' ]; then
LABEL_OPTION="--label main --label cuda${CUDA_REL}"
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 nvidia ${LABEL_OPTION} --force ${UPLOADFILE}
else
echo "Skipping upload"
fi