[CV] Initial implementation of evaluation. #4723
Workflow file for this run
This file contains hidden or 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
| name: Miscellaneous | |
| on: | |
| push: | |
| branches: | |
| - master | |
| - 'release_*' | |
| pull_request: | |
| permissions: | |
| contents: read # to fetch code (actions/checkout) | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| env: | |
| BRANCH_NAME: >- | |
| ${{ github.event.pull_request.number && 'PR-' }}${{ github.event.pull_request.number || github.ref_name }} | |
| jobs: | |
| ci-configure: | |
| name: Configure variables for CI | |
| uses: ./.github/workflows/ci_configure.yml | |
| with: | |
| tag-prefix: misc | |
| gtest-cpu-nonomp: | |
| name: Test Google C++ unittest (CPU Non-OMP) | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| shell: bash -l {0} | |
| steps: | |
| - uses: actions/checkout@v7.0.1 | |
| with: | |
| submodules: 'true' | |
| - uses: dmlc/xgboost-devops/actions/miniforge-setup@main | |
| with: | |
| environment-name: cpp_test | |
| environment-file: ops/conda_env/cpp_test.yml | |
| - uses: dmlc/xgboost-devops/actions/sccache@main | |
| - name: Build and test XGBoost | |
| run: bash ops/pipeline/build-cpu.sh cpu-nonomp | |
| - run: sccache --show-stats | |
| c-api-demo: | |
| name: Test installing XGBoost lib + building the C API demo | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| shell: bash -l {0} | |
| steps: | |
| - uses: actions/checkout@v7.0.1 | |
| with: | |
| submodules: 'true' | |
| - uses: dmlc/xgboost-devops/actions/miniforge-setup@main | |
| with: | |
| environment-name: cpp_test | |
| environment-file: ops/conda_env/cpp_test.yml | |
| - uses: dmlc/xgboost-devops/actions/sccache@main | |
| - name: Build and run C API demo with shared | |
| run: bash ops/pipeline/test-c-api-demo.sh | |
| build-i386: | |
| name: Build 32-bit (i386) | |
| runs-on: | |
| - runs-on=${{ github.run_id }} | |
| - runner=linux-amd64-cpu | |
| - tag=misc-build-i386 | |
| steps: | |
| - uses: actions/checkout@v7.0.1 | |
| with: | |
| submodules: "true" | |
| - name: Log into Docker registry (AWS ECR) | |
| run: bash ops/pipeline/login-docker-registry.sh | |
| - run: bash ops/pipeline/test-cpp-i386.sh | |
| build-jvm-docs: | |
| name: Build docs for JVM packages | |
| needs: ci-configure | |
| runs-on: | |
| - runs-on=${{ github.run_id }} | |
| - runner=linux-amd64-cpu | |
| - tag=misc-build-jvm-docs | |
| container: | |
| image: ${{ needs.ci-configure.outputs.docker_registry }}/xgb-ci.jvm_gpu_build:${{ needs.ci-configure.outputs.image_tag }} | |
| credentials: | |
| username: ${{ needs.ci-configure.outputs.docker_username }} | |
| password: ${{ needs.ci-configure.outputs.docker_password }} | |
| steps: | |
| - uses: runs-on/action@v2 | |
| - uses: actions/checkout@v7.0.1 | |
| with: | |
| submodules: "true" | |
| - uses: dmlc/xgboost-devops/actions/sccache@main | |
| - name: Build libxgboost4j.so with CUDA | |
| run: bash ops/pipeline/build-jvm-gpu.sh | |
| - run: sccache --show-stats | |
| - name: Build JVM docs | |
| run: bash ops/pipeline/build-jvm-doc.sh | |
| - name: Upload JVM doc | |
| run: | | |
| python3 ops/pipeline/manage-artifacts.py upload \ | |
| --s3-bucket xgboost-docs \ | |
| --prefix ${BRANCH_NAME}/${{ github.event.pull_request.head.sha || github.sha }} --make-public \ | |
| jvm-packages/${BRANCH_NAME}.tar.bz2 | |
| build-r-docs: | |
| name: Build docs for the R package | |
| needs: ci-configure | |
| runs-on: | |
| - runs-on=${{ github.run_id }} | |
| - runner=linux-amd64-cpu | |
| - tag=misc-build-r-docs | |
| container: | |
| image: ${{ needs.ci-configure.outputs.docker_registry }}/xgb-ci.cpu_build_r_doc:${{ needs.ci-configure.outputs.image_tag }} | |
| credentials: | |
| username: ${{ needs.ci-configure.outputs.docker_username }} | |
| password: ${{ needs.ci-configure.outputs.docker_password }} | |
| steps: | |
| - uses: actions/checkout@v7.0.1 | |
| with: | |
| submodules: "true" | |
| - uses: dmlc/xgboost-devops/actions/sccache@main | |
| - run: bash ops/script/setup_r_sccache.sh | |
| - name: Build R docs | |
| run: bash ops/pipeline/build-r-docs.sh | |
| - name: Upload R doc | |
| run: | | |
| python3 ops/pipeline/manage-artifacts.py upload \ | |
| --s3-bucket xgboost-docs \ | |
| --prefix ${BRANCH_NAME}/${{ github.event.pull_request.head.sha || github.sha }} --make-public \ | |
| r-docs-${BRANCH_NAME}.tar.bz2 | |
| test-docs: | |
| name: Test Sphinx documentation snippets | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| shell: bash -l {0} | |
| steps: | |
| - uses: actions/checkout@v7.0.1 | |
| with: | |
| submodules: "true" | |
| - name: Install system dependencies | |
| run: | | |
| sudo apt update | |
| sudo apt install -y libuv1-dev | |
| - uses: r-lib/actions/setup-r@v2 | |
| with: | |
| r-version: release | |
| - uses: dmlc/xgboost-devops/actions/miniforge-setup@main | |
| with: | |
| environment-name: xgboost_docs | |
| environment-file: doc/xgboost_doc.yml | |
| - uses: dmlc/xgboost-devops/actions/sccache@main | |
| - name: Test Sphinx documentation snippets | |
| run: bash ops/pipeline/test-docs.sh | |
| - run: sccache --show-stats | |
| trigger-rtd-build: | |
| name: Trigger Read The Docs build | |
| needs: [build-jvm-docs, build-r-docs, test-docs] | |
| runs-on: | |
| - runs-on=${{ github.run_id }} | |
| - runner=linux-amd64-cpu | |
| - tag=misc-trigger-rtd-build | |
| steps: | |
| - uses: actions/checkout@v7.0.1 | |
| - name: Trigger RTD | |
| run: bash ops/pipeline/trigger-rtd.sh |