Skip to content

Commit

Permalink
Don't upload artifacts from pull requests
Browse files Browse the repository at this point in the history
  • Loading branch information
hcho3 committed Nov 19, 2024
1 parent dfd5624 commit 0ee55c2
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 21 deletions.
10 changes: 5 additions & 5 deletions ops/pipeline/build-cuda-with-rmm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ source ops/pipeline/enforce-ci.sh

echo "--- Build with CUDA with RMM"

#if [[ ($is_pull_request == 1) || ($is_release_branch == 0) ]]
#then
if [[ ($is_pull_request == 1) || ($is_release_branch == 0) ]]
then
arch_flag="-DGPU_COMPUTE_VER=75"
#else
# arch_flag=""
#fi
else
arch_flag=""
fi

echo "--- Build libxgboost from the source"
python3 ops/docker_run.py \
Expand Down
10 changes: 5 additions & 5 deletions ops/pipeline/build-cuda.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ source ops/pipeline/enforce-ci.sh

echo "--- Build with CUDA"

# if [[ ($is_pull_request == 1) || ($is_release_branch == 0) ]]
#then
if [[ ($is_pull_request == 1) || ($is_release_branch == 0) ]]
then
arch_flag="-DGPU_COMPUTE_VER=75"
#else
# arch_flag=""
#fi
else
arch_flag=""
fi

echo "--- Build libxgboost from the source"
set -x
Expand Down
10 changes: 5 additions & 5 deletions ops/pipeline/build-jvm-gpu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ source ops/pipeline/enforce-ci.sh

echo "--- Build libxgboost4j.so with CUDA"

# if [[ ($is_pull_request == 1) || ($is_release_branch == 0) ]]
#then
if [[ ($is_pull_request == 1) || ($is_release_branch == 0) ]]
then
arch_flag="-DGPU_COMPUTE_VER=75"
#else
# arch_flag=""
#fi
else
arch_flag=""
fi

COMMAND=$(
cat <<-EOF
Expand Down
6 changes: 3 additions & 3 deletions ops/pipeline/build-jvm-macos-apple-silicon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ pushd lib
libname=libxgboost4j_m1_${GITHUB_SHA}.dylib
mv -v libxgboost4j.dylib ${libname}

# if [[ ($is_pull_request == 0) && ($is_release_branch == 1) ]]
# then
if [[ ($is_pull_request == 0) && ($is_release_branch == 1) ]]
then
aws s3 cp ${libname} \
s3://xgboost-nightly-builds/${BRANCH_NAME}/libxgboost4j/ \
--acl public-read --no-progress
# fi
fi
popd
set +x
6 changes: 3 additions & 3 deletions ops/pipeline/build-jvm-macos-intel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ pushd lib
libname=libxgboost4j_intel_${GITHUB_SHA}.dylib
mv -v libxgboost4j.dylib ${libname}

# if [[ ($is_pull_request == 0) && ($is_release_branch == 1) ]]
# then
if [[ ($is_pull_request == 0) && ($is_release_branch == 1) ]]
then
aws s3 cp ${libname} \
s3://xgboost-nightly-builds/${BRANCH_NAME}/libxgboost4j/ \
--acl public-read --no-progress
# fi
fi
popd
set +x

0 comments on commit 0ee55c2

Please sign in to comment.