-
-
Notifications
You must be signed in to change notification settings - Fork 229
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add github action to build documentation
- Loading branch information
1 parent
4babca9
commit 487aa4b
Showing
2 changed files
with
42 additions
and
2 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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# Build the Doxygen documentation (User manual and API reference) and publish it to www.reactphysics3d.com website | ||
name: Publish Documentation | ||
|
||
# Controls when the action will run. Triggers the workflow on push | ||
on: | ||
push: | ||
branches: | ||
- documentation | ||
|
||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
jobs: | ||
documentation: | ||
name: Build/Publish Documentation | ||
runs-on: ubuntu-latest | ||
#needs: [build-and-test] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install dependencies | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install cmake doxygen | ||
cmake --version | ||
doxygen --version | ||
- name: CMake Configure | ||
shell: bash | ||
run: | | ||
mkdir build | ||
cmake \ | ||
-S . \ | ||
-B build \ | ||
-DRP3D_GENERATE_DOCUMENTATION=True \ | ||
-DRP3D_COMPILE_TESTS=False \ | ||
-DRP3D_COMPILE_TESTBED=False | ||
- name: Build Documentation | ||
shell: bash | ||
run: cmake --build build/ |
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