From 936b22fdf30b628dc307add837b29b932d4122be Mon Sep 17 00:00:00 2001 From: Philip Hyunsu Cho Date: Wed, 13 Dec 2023 15:25:51 -0800 Subject: [PATCH] [CI] Upload libxgboost4j.dylib (M1) to S3 bucket (#9886) * [CI] Upload libxgboost4j.dylib (M1) to S3 bucket * Fix typo --- tests/buildkite/test-macos-m1-clang11.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/tests/buildkite/test-macos-m1-clang11.sh b/tests/buildkite/test-macos-m1-clang11.sh index 97b4fef93..401701b42 100755 --- a/tests/buildkite/test-macos-m1-clang11.sh +++ b/tests/buildkite/test-macos-m1-clang11.sh @@ -24,6 +24,20 @@ popd rm -rf build set +x +echo "--- Upload Python wheel" +set -x +pushd lib +mv -v libxgboost4j.dylib libxgboost4j_m1_${BUILDKITE_COMMIT}.dylib +buildkite-agent artifact upload libxgboost4j_m1_${BUILDKITE_COMMIT}.dylib +if [[ ($is_pull_request == 0) && ($is_release_branch == 1) ]] +then + aws s3 cp libxgboost4j_m1_${BUILDKITE_COMMIT}.dylib \ + s3://xgboost-nightly-builds/${BRANCH_NAME}/libxgboost4j/ \ + --acl public-read --no-progress +fi +popd +set +x + # Ensure that XGBoost can be built with Clang 11 echo "--- Build and Test XGBoost with MacOS M1, Clang 11" set -x