-
-
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.
- Loading branch information
Showing
6 changed files
with
45 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
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,8 @@ | ||
steps: | ||
- block: ":rocket: Run this test job" | ||
if: build.pull_request.id != null || build.branch =~ /^dependabot\// | ||
- label: ":macos: Build and Test XGBoost for MacOS M1 with Clang 11" | ||
command: "tests/buildkite/test-macos-m1-clang11.sh" | ||
key: mac-m1-appleclang11 | ||
agents: | ||
queue: mac-mini-m1 |
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,33 @@ | ||
#!/bin/bash | ||
|
||
set -euo pipefail | ||
|
||
source tests/buildkite/conftest.sh | ||
|
||
# Display system info | ||
echo "--- Display system information" | ||
set -x | ||
system_profiler SPSoftwareDataType | ||
sysctl -n machdep.cpu.brand_string | ||
uname -m | ||
set +x | ||
|
||
# Create new Conda env | ||
echo "--- Set up Conda env" | ||
. $HOME/mambaforge/etc/profile.d/conda.sh | ||
. $HOME/mambaforge/etc/profile.d/mamba.sh | ||
conda_env=xgboost_dev_$(uuidgen | tr '[:upper:]' '[:lower:]' | tr -d '-') | ||
mamba create -y -n ${conda_env} python=3.8 | ||
conda activate ${conda_env} | ||
mamba env update -n ${conda_env} --file tests/ci_build/conda_env/macos_cpu_test.yml | ||
|
||
# Ensure that XGBoost can be built with Clang 11 | ||
echo "--- Build and Test XGBoost with MacOS M1, Clang 11" | ||
set -x | ||
LLVM11_PATH=$(brew --prefix llvm\@11) | ||
mkdir build | ||
pushd build | ||
cmake .. -GNinja -DCMAKE_C_COMPILER=${LLVM11_PATH}/bin/clang \ | ||
-DCMAKE_CXX_COMPILER=${LLVM11_PATH}/bin/clang++ -DGOOGLE_TEST=ON \ | ||
-DUSE_DMLC_GTEST=ON | ||
ninja -v |
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