Skip to content

Commit d664e11

Browse files
authored
[ci] Avoid fetching GTest with CMake. (#11828)
1 parent e7c35ff commit d664e11

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

.github/workflows/misc.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,17 @@ jobs:
1717
gtest-cpu-nonomp:
1818
name: Test Google C++ unittest (CPU Non-OMP)
1919
runs-on: ubuntu-latest
20+
defaults:
21+
run:
22+
shell: bash -l {0}
2023
steps:
2124
- uses: actions/checkout@v4
2225
with:
2326
submodules: 'true'
24-
- name: Install system packages
25-
run: |
26-
sudo apt-get install -y --no-install-recommends ninja-build
27+
- uses: dmlc/xgboost-devops/actions/miniforge-setup@main
28+
with:
29+
environment-name: cpp_test
30+
environment-file: ops/conda_env/cpp_test.yml
2731
- name: Build and test XGBoost
2832
run: bash ops/pipeline/build-test-cpu-nonomp.sh
2933

ops/pipeline/build-test-cpu-nonomp.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ cmake .. \
1010
-DUSE_OPENMP=OFF \
1111
-DHIDE_CXX_SYMBOLS=ON \
1212
-DGOOGLE_TEST=ON \
13-
-DUSE_DMLC_GTEST=ON \
1413
-DENABLE_ALL_WARNINGS=ON \
1514
-DCMAKE_COMPILE_WARNING_AS_ERROR=OFF
1615
time ninja -v

0 commit comments

Comments
 (0)