-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build libwholegraph docs in CI (#96)
Fixes #94 Uploads API docs for `libwholegraph`, to be used by rapidsai/cugraph-docs#46 Also removes `sphinx` dependencies... this repo only needs to produce Doxygen docs for `libwholegraph`, all the other Sphinx stuff will be done in https://github.com/rapidsai/cugraph-docs. Authors: - James Lamb (https://github.com/jameslamb) - Don Acosta (https://github.com/acostadon) Approvers: - Don Acosta (https://github.com/acostadon) - Bradley Dice (https://github.com/bdice) URL: #96
- Loading branch information
Showing
7 changed files
with
65 additions
and
33 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 |
---|---|---|
|
@@ -43,6 +43,18 @@ jobs: | |
branch: ${{ inputs.branch }} | ||
date: ${{ inputs.date }} | ||
sha: ${{ inputs.sha }} | ||
docs-build: | ||
needs: conda-cpp-build | ||
secrets: inherit | ||
uses: rapidsai/shared-workflows/.github/workflows/[email protected] | ||
with: | ||
arch: "amd64" | ||
branch: ${{ inputs.branch }} | ||
build_type: ${{ inputs.build_type || 'branch' }} | ||
container_image: "rapidsai/ci-conda:latest" | ||
date: ${{ inputs.date }} | ||
run_script: "ci/build_docs.sh" | ||
sha: ${{ inputs.sha }} | ||
upload-conda: | ||
needs: [cpp-build, python-build] | ||
secrets: inherit | ||
|
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 |
---|---|---|
|
@@ -19,6 +19,7 @@ jobs: | |
- conda-cpp-tests | ||
- conda-python-build | ||
- conda-python-tests | ||
- docs-build | ||
- conda-notebook-tests | ||
- wheel-build-pylibwholegraph | ||
- wheel-tests-pylibwholegraph | ||
|
@@ -116,6 +117,15 @@ jobs: | |
with: | ||
build_type: pull-request | ||
matrix_filter: map(select(.ARCH == "amd64")) | ||
docs-build: | ||
needs: conda-cpp-build | ||
secrets: inherit | ||
uses: rapidsai/shared-workflows/.github/workflows/[email protected] | ||
with: | ||
arch: "amd64" | ||
build_type: pull-request | ||
container_image: "rapidsai/ci-conda:latest" | ||
run_script: "ci/build_docs.sh" | ||
wheel-build-pylibwholegraph: | ||
needs: checks | ||
secrets: inherit | ||
|
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,43 @@ | ||
#!/bin/bash | ||
# Copyright (c) 2023-2024, NVIDIA CORPORATION. | ||
|
||
set -euo pipefail | ||
|
||
rapids-logger "Create test conda environment" | ||
. /opt/conda/etc/profile.d/conda.sh | ||
|
||
RAPIDS_VERSION="$(rapids-version)" | ||
|
||
rapids-dependency-file-generator \ | ||
--output conda \ | ||
--file-key docs \ | ||
--matrix "cuda=${RAPIDS_CUDA_VERSION%.*};arch=$(arch);py=${RAPIDS_PY_VERSION}" | tee env.yaml | ||
|
||
rapids-mamba-retry env create --yes -f env.yaml -n docs | ||
|
||
# Temporarily allow unbound variables for conda activation. | ||
set +u | ||
conda activate docs | ||
set -u | ||
|
||
rapids-print-env | ||
|
||
rapids-logger "Downloading artifacts from previous jobs" | ||
|
||
CPP_CHANNEL=$(rapids-download-conda-from-s3 cpp) | ||
export RAPIDS_DOCS_DIR="$(mktemp -d)" | ||
|
||
rapids-mamba-retry install \ | ||
--channel "${CPP_CHANNEL}" \ | ||
"libwholegraph=${RAPIDS_VERSION}" | ||
|
||
rapids-logger "Build C++ docs" | ||
pushd cpp | ||
doxygen Doxyfile | ||
mkdir -p "${RAPIDS_DOCS_DIR}/libwholegraph/xml_tar" | ||
tar -czf "${RAPIDS_DOCS_DIR}/libwholegraph/xml_tar"/xml.tar.gz -C xml . | ||
popd | ||
|
||
rapids-logger "Output temp dir: ${RAPIDS_DOCS_DIR}" | ||
|
||
RAPIDS_VERSION_NUMBER="$(rapids-version-major-minor)" rapids-upload-docs |
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