Skip to content

Commit

Permalink
Try fix doxygen not found and failure in mv
Browse files Browse the repository at this point in the history
  • Loading branch information
jolly-chen committed Apr 25, 2024
1 parent c2c78ca commit 44eb23e
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/root-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ on:
required: false

jobs:
gen-docs:
build-docs:
runs-on:
- self-hosted
- linux
Expand Down Expand Up @@ -105,13 +105,13 @@ jobs:
run : |
mkdir -p ${{ github.workspace }}/doxygen
curl -L https://github.com/doxygen/doxygen/releases/download/Release_1_10_0/doxygen-1.10.0.linux.bin.tar.gz | tar -xz -C ${{ github.workspace }}/doxygen/ --strip-components=1
echo ${{ github.workspace }}/doxygen/install/bin >> $GITHUB_PATH
# TEMPORARY: force incremental build for faster debugging
- name: Apply option overrides
if: ${{ github.event_name != 'schedule' }}
env:
#TODO: DOXYGEN_EXECUTABLE doesn't have to be specified anymore if we have a valid version in PATH
OVERRIDES: "DOXYGEN_EXECUTABLE=${{ github.workspace }}/doxygen/bin/doxygen
testing=off roottest=off" # can be removed if this workflow is merged with root-ci.yml
OVERRIDES: "testing=off roottest=off" # can be removed if this workflow is merged with root-ci.yml
CONFIGFILE: '.github/workflows/root-ci-config/buildconfig/alma9.txt'
shell: bash
run: |
Expand Down Expand Up @@ -183,13 +183,16 @@ jobs:

- name: Run Doxygen
env:
DOXYGEN_OUTPUT_DIRECTORY: /github/home/rootdoc
DOXYGEN_OUTPUT_DIRECTORY: /github/home/rootdoc_TMP
shell: bash
run: |
source /github/home/ROOT-CI/build/bin/thisroot.sh
cd /github/home/ROOT-CI/src/documentation/doxygen
make -j$(nproc)
mv ${DOXYGEN_OUTPUT_DIRECTORY}/html ${DOXYGEN_OUTPUT_DIRECTORY}
mv ${DOXYGEN_OUTPUT_DIRECTORY}/html /github/home/rootdoc
if [ -d ${DOXYGEN_OUTPUT_DIRECTORY}/notebooks ]; then
mv ${DOXYGEN_OUTPUT_DIRECTORY}/notebooks /github/home/rootdoc/notebooks
fi
# The output DOCU_LOCATION set in documentation/doxygen/CMakeLists.txt
- name: Create documentation archive
Expand Down

0 comments on commit 44eb23e

Please sign in to comment.