-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CI] Add CI pipeline to build libxgboost4j.so targeting Linux ARM64
- Loading branch information
Showing
5 changed files
with
39 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/bin/bash | ||
|
||
set -euo pipefail | ||
|
||
source tests/buildkite/conftest.sh | ||
|
||
command_wrapper="tests/ci_build/ci_build.sh aarch64" | ||
|
||
# Build XGBoost4J binary | ||
echo "--- Build libxgboost4j.so" | ||
set -x | ||
mkdir build | ||
$command_wrapper bash -c \ | ||
"cd build && cmake .. -GNinja -DJVM_BINDINGS=ON -DUSE_OPENMP=ON && ninja -v" | ||
ldd lib/libxgboost4j.so | ||
|
||
echo "--- Upload libxgboost4j.dylib" | ||
pushd lib | ||
libname=libxgboost4j_linux_arm64_${BUILDKITE_COMMIT}.so | ||
mv -v libxgboost4j.so ${libname} | ||
buildkite-agent artifact upload ${libname} | ||
#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 | ||
popd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters