forked from dmlc/xgboost
-
Notifications
You must be signed in to change notification settings - Fork 1
96 lines (86 loc) · 3.19 KB
/
doc.yml
File metadata and controls
96 lines (86 loc) · 3.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
name: XGBoost-docs
on: [push, pull_request]
env:
BRANCH_NAME: >-
${{ github.event.pull_request.number && 'PR-' }}${{ github.event.pull_request.number || github.ref_name }}
jobs:
build-jvm-docs:
name: Build docs for JVM packages
runs-on:
- runs-on=${{ github.run_id }}
- runner=linux-amd64-cpu
- tag=doc-build-jvm-docs
steps:
# Restart Docker daemon so that it recognizes the ephemeral disks
- run: sudo systemctl restart docker
- uses: actions/checkout@v4
with:
submodules: "true"
- name: Get the git hash for the push event.
if: ${{ github.event_name == 'push' }}
shell: bash
run: |
echo "HEAD_SHA=${GITHUB_SHA}" >> ${GITHUB_ENV}
- name: Get the git hash for the PR event.
if: ${{ github.event_name == 'pull_request' }}
shell: bash
run: |
echo "HEAD_SHA=${{ github.event.pull_request.head.sha }}" >> ${GITHUB_ENV}
- name: Log into Docker registry (AWS ECR)
run: bash ops/pipeline/login-docker-registry.sh
- run: bash ops/pipeline/build-jvm-gpu.sh
- run: bash ops/pipeline/build-jvm-doc.sh
- name: Upload JVM doc
run: |
# xgboost-docs/{branch}/{commit}/{branch}.tar.bz2
# branch can be the name of the dmlc/xgboost branch, or `PR-{number}`.
python3 ops/pipeline/manage-artifacts.py upload \
--s3-bucket xgboost-docs \
--prefix ${BRANCH_NAME}/${{ env.HEAD_SHA }} --make-public \
jvm-packages/${{ env.BRANCH_NAME }}.tar.bz2
build-r-docs:
name: Build docs for the R package
runs-on:
- runs-on=${{ github.run_id }}
- runner=linux-amd64-cpu
- tag=r-tests-build-docs
steps:
# Restart Docker daemon so that it recognizes the ephemeral disks
- run: sudo systemctl restart docker
- uses: actions/checkout@v4
with:
submodules: "true"
- name: Get the git hash for the push event.
if: ${{ github.event_name == 'push' }}
shell: bash
run: |
echo "HEAD_SHA=${GITHUB_SHA}" >> ${GITHUB_ENV}
- name: Get the git hash for the PR event.
if: ${{ github.event_name == 'pull_request' }}
shell: bash
run: |
echo "HEAD_SHA=${{ github.event.pull_request.head.sha }}" >> ${GITHUB_ENV}
- name: Log into Docker registry (AWS ECR)
run: bash ops/pipeline/login-docker-registry.sh
- 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}/${{ env.HEAD_SHA }} --make-public \
r-docs-${{ env.BRANCH_NAME }}.tar.bz2
trigger-rtd-build:
needs: [build-jvm-docs]
name: Trigger Read The Docs build.
runs-on:
- runs-on=${{ github.run_id }}
- runner=linux-amd64-cpu
- tag=doc-trigger-rtd-build
steps:
# Restart Docker daemon so that it recognizes the ephemeral disks
- run: sudo systemctl restart docker
- uses: actions/checkout@v4
with:
submodules: "true"
- name: Trigger RTD
run: bash ops/pipeline/trigger-rtd.sh