Skip to content

Commit

Permalink
Merge pull request #1089 from dlyr/manual-doc-build
Browse files Browse the repository at this point in the history
[ci] Manual doc build uses deploy-doc, remove doc build from pr ci.
  • Loading branch information
dlyr authored Oct 11, 2024
2 parents 2794367 + e6109c6 commit ff4df84
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 48 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy-doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: doc
path: |
build/Radium-Engine/html/
path: build/Radium-Engine/html/
retention-days: 5
- name: Fix badges github ref
if: ${{ inputs.deploy-on-gh-pages == 'true' }}
run: |
Expand Down
46 changes: 4 additions & 42 deletions .github/workflows/manual-doc-artifact-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,45 +8,7 @@ on:
required: true

jobs:
deploy-doc:
runs-on: ubuntu-20.04
steps:
- name: Prepare directories
run: |
mkdir -p src/Radium-Engine
mkdir -p build/Radium-Engine
mkdir doxygen
- name: Checkout remote head
uses: actions/checkout@master
with:
path: src/Radium-Engine
submodules: recursive
- name: Install packages
run : |
sudo apt-get install graphviz plantuml clang-9 libclang-9-dev
- name: Fetch recent doxygen (1.9.8)
run: |
wget https://sourceforge.net/projects/doxygen/files/rel-1.9.8/doxygen-1.9.8.linux.bin.tar.gz -O doxygen.tar.gz
tar -zxvf doxygen.tar.gz -C doxygen --wildcards "*/bin"
mv doxygen/*/bin doxygen/
- name: Extract ref for badges prefix
if: always()
shell: bash
run: |
GITHUB_REF=${{ github.ref }}
echo "branch=${GITHUB_REF#refs/heads/}" >> $GITHUB_OUTPUT
id: extract-branch
- name: Configure Doc
run: |
cd build/Radium-Engine
cmake ../../src/Radium-Engine/doc -DCMAKE_EXECUTE_PROCESS_COMMAND_ECHO=STDOUT -DDOXYGEN_EXECUTABLE=../../doxygen/bin/doxygen
- name: Build Doc
run: |
cd build/Radium-Engine
cmake --build . --target RadiumDoc
- name: 'Upload Artifact'
uses: actions/upload-artifact@v3
with:
name: doc
path: build/Radium-Engine/html
retention-days: 5
call-build-doc:
uses: ./.github/workflows/deploy-doc.yml
with:
deploy-on-gh-pages: "false"
4 changes: 0 additions & 4 deletions .github/workflows/pull-request-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,3 @@ jobs:
macos: "false"
build-release: "false"
coverage: "true"
call-deploy-doc:
uses: ./.github/workflows/deploy-doc.yml
with:
deploy-on-gh-pages: "false"

0 comments on commit ff4df84

Please sign in to comment.