Skip to content

Commit

Permalink
modify files
Browse files Browse the repository at this point in the history
  • Loading branch information
AyodeAwe committed Jan 13, 2023
1 parent 03123a3 commit 5a32ed3
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
with:
build_type: pull-request
docs_build:
needs: conda-python-tests
needs: conda-python-build
secrets: inherit
uses: rapidsai/shared-action-workflows/.github/workflows/custom-job.yaml@cuda-118
with:
Expand Down
19 changes: 10 additions & 9 deletions ci/build_docs.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/bash

VERSION_NUMBER=$(echo `git describe --abbrev=0 --tags` | grep -o -E '([0-9]+\.[0-9]+)')

set -euo pipefail

rapids-logger "Create test conda environment"
Expand All @@ -20,24 +22,23 @@ CPP_CHANNEL=$(rapids-download-conda-from-s3 cpp)
PYTHON_CHANNEL=$(rapids-download-conda-from-s3 python)

rapids-mamba-retry install \
-c "${CPP_CHANNEL}" \
-c "${PYTHON_CHANNEL}" \
--channel "${CPP_CHANNEL}" \
--channel "${PYTHON_CHANNEL}" \
rmm librmm

git clone https://github.com/rapidsai/rmm.git

# Build CPP docs
gpuci_logger "Build Doxygen docs"
rapids-logger "Build Doxygen docs"
cd ./doxygen
doxygen Doxyfile

# Build Python docs
gpuci_logger "Build Python docs"
rapids-logger "Build Python docs"
cd ../python/docs
sphinx-build -b html . _html
sphinx-build -b dirhtml . _html
sphinx-build -b text . _text

if [[ ${RAPIDS_BUILD_TYPE} == "branch" ]]; then
aws s3 sync _html s3://rapidsai-docs/rmm/html
aws s3 sync _txt s3://rapidsai-docs/rmm/txt
aws s3 sync --delete _html "s3://rapidsai-docs/rmm/${VERSION_NUMBER}/html"
aws s3 sync --delete _text "s3://rapidsai-docs/rmm/${VERSION_NUMBER}/txt"
aws s3 sync --delete ../../doxygen/html "s3://rapidsai-docs/librmm/${VERSION_NUMBER}/html"
fi
2 changes: 1 addition & 1 deletion ci/test_cpp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ rapids-print-env
CPP_CHANNEL=$(rapids-download-conda-from-s3 cpp)

rapids-mamba-retry install \
-c "${CPP_CHANNEL}" \
--channel "${CPP_CHANNEL}" \
librmm librmm-tests

RAPIDS_TESTS_DIR=${RAPIDS_TESTS_DIR:-"${PWD}/test-results"}
Expand Down
4 changes: 2 additions & 2 deletions ci/test_python.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ CPP_CHANNEL=$(rapids-download-conda-from-s3 cpp)
PYTHON_CHANNEL=$(rapids-download-conda-from-s3 python)

rapids-mamba-retry install \
-c "${CPP_CHANNEL}" \
-c "${PYTHON_CHANNEL}" \
--channel "${CPP_CHANNEL}" \
--channel "${PYTHON_CHANNEL}" \
rmm librmm

RAPIDS_TESTS_DIR=${RAPIDS_TESTS_DIR:-"${PWD}/test-results"}
Expand Down

0 comments on commit 5a32ed3

Please sign in to comment.