Bump to v12.0.1 (#1960) #2855
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
name: Docs | |
on: | |
push: | |
branches: | |
- 'master' | |
- 'feature/**' | |
- 'pr/**' | |
paths-ignore: | |
- 'CHANGES' | |
- 'openvdb_maya/**' | |
- 'pendingchanges/**' | |
- '**.md' | |
pull_request: | |
branches: | |
- '**' | |
paths-ignore: | |
- 'CHANGES' | |
- 'openvdb_maya/**' | |
- 'pendingchanges/**' | |
- '**.md' | |
workflow_dispatch: | |
inputs: | |
deploy: | |
description: 'Deploy to openvdb-website (docs/coverage)?' | |
required: true | |
default: 'none' | |
# Allow subsequent pushes to the same PR or REF to cancel any previous jobs. | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
doxygen: | |
runs-on: ubuntu-latest | |
env: | |
CXX: g++ | |
container: | |
# @note We can't update this as epydoc doesn't support python3. We'll | |
# need to re-write the python docs to use sphinx | |
image: aswf/ci-openvdb:2022 | |
steps: | |
- name: Enable Node 16 | |
run: | | |
echo "ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true" >> $GITHUB_ENV | |
- uses: actions/checkout@v3 | |
- name: install_doxygen | |
run: ./ci/install_doxygen.sh 1_8_11 | |
- name: nanobind | |
#if: contains(matrix.config.image, '2023') == false | |
run: ./ci/install_nanobind.sh 2.0.0 | |
# - name: install_epydoc | |
# run: pip install epydoc | |
- name: install_latex | |
run: | | |
# Fix error: Cannot prepare internal mirrorlist: No URLs in mirrorlist. CentOS 8 reached EOL means need to replace the official mirror to vault.centos.org | |
# Comment out mirrorlist and replace #baseurl=...mirror.centos.org with baseurl=...vault.centos.org in files starting with CentOS- in /etc/yum.repos.d folder | |
sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-* | |
sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-* | |
yum -y install texlive-latex-bin texlive-dvips texlive-collection-fontsrecommended texlive-collection-latexrecommended | |
- name: build | |
run: > | |
./ci/build.sh -v | |
--build-type=Release | |
--components="core,python,doc" | |
--cargs=\" | |
-DUSE_BLOSC=OFF | |
-DOPENVDB_CORE_STATIC=OFF | |
-DOPENVDB_PYTHON_WRAP_ALL_GRID_TYPES=ON | |
-DUSE_EXPLICIT_INSTANTIATION=OFF | |
-DDISABLE_DEPENDENCY_VERSION_CHECKS=ON | |
\" | |
# - name: epydoc | |
# run: | | |
# epydoc --html -o /usr/local/share/doc/OpenVDB/html/python pyopenvdb | |
- name: pre_deploy | |
# Overwrite global SSH configuration | |
# https://github.com/peaceiris/actions-gh-pages/issues/719 | |
# https://linuxhint.com/ssh-stricthostkeychecking/ | |
run: > | |
echo "Host * | |
StrictHostKeyChecking no | |
UserKnownHostsFile=/dev/null | |
" > /etc/ssh/ssh_config | |
- name: deploy | |
# only deploy documentation on a manual workflow dispatch | |
if: | | |
github.repository_owner == 'AcademySoftwareFoundation' && | |
github.event_name == 'workflow_dispatch' && | |
github.event.inputs.deploy == 'docs' | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
deploy_key: ${{ secrets.PRIVATE_KEY }} | |
publish_dir: /usr/local/share/doc/OpenVDB/html | |
destination_dir: documentation/doxygen | |
external_repository: AcademySoftwareFoundation/openvdb-website | |
publish_branch: master | |
full_commit_message: "Automatic doxygen documentation update | |
- Deployed from: AcademySoftwareFoundation/openvdb ${{ github.sha }} | |
Signed-off-by: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>" | |
############################################################################# | |
################################ Coverage ################################### | |
############################################################################# | |
linux-coverage: | |
if: | | |
github.repository_owner == 'AcademySoftwareFoundation' && | |
github.event_name == 'workflow_dispatch' && | |
github.event.inputs.deploy == 'coverage' | |
runs-on: ubuntu-latest | |
container: | |
image: aswf/ci-openvdb:2023 | |
env: | |
CXX: g++ | |
steps: | |
- uses: actions/checkout@v3 | |
- name: install_gcovr | |
run: pip install gcovr | |
- name: build | |
run: > | |
./ci/build.sh -v | |
--build-type=coverage | |
--components="core,axcore,test,axtest" | |
--cargs=\"-DOPENVDB_CORE_STATIC=OFF -DOPENVDB_AX_STATIC=OFF\" | |
- name: test_and_gcov | |
run: | | |
cd build | |
ctest -V | |
make gcov_html | |
cd - | |
- name: zip_large_html | |
# The index.function list is > 100mb. Just zip it and provide it as a | |
# download (could instead use LFS to host but not really worth it). | |
run: | | |
cd build/gcov_html | |
tar -czvf index.functions.html.tar.gz index.functions.html | |
sed -i -e 's/index.functions.html/index.functions.html.tar.gz/g' index.html | |
sed -i -e 's/List of functions/Download function index/g' index.html | |
rm index.functions.html | |
cd - | |
- name: pre_deploy | |
# Overwrite global SSH configuration | |
# https://github.com/peaceiris/actions-gh-pages/issues/719 | |
# https://linuxhint.com/ssh-stricthostkeychecking/ | |
run: > | |
echo "Host * | |
StrictHostKeyChecking no | |
UserKnownHostsFile=/dev/null | |
" > /etc/ssh/ssh_config | |
- name: deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }} | |
publish_dir: ./build/gcov_html | |
destination_dir: documentation/code_coverage | |
external_repository: AcademySoftwareFoundation/openvdb-website | |
publish_branch: master | |
full_commit_message: "Automatic code coverage update | |
- Deployed from: AcademySoftwareFoundation/openvdb ${{ github.sha }} | |
Signed-off-by: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>" | |