Skip to content

Commit 54ba0d0

Browse files
committed
Edited the GitHub workflow for building the documentation.
1 parent 7612540 commit 54ba0d0

File tree

1 file changed

+17
-7
lines changed

1 file changed

+17
-7
lines changed

.github/workflows/documentation.yml

+17-7
Original file line numberDiff line numberDiff line change
@@ -16,32 +16,42 @@ jobs:
1616
- name: Install dependencies
1717
run: |
1818
sudo apt-get update
19-
sudo apt-get install doxygen
19+
sudo apt-get install build-essential cmake doxygen
2020
sudo pip3 install -U sphinx sphinx_rtd_theme breathe
2121
- name: Copy files from master branch
2222
run: |
23-
git checkout origin/master -- docs/ Doxyfile src/
23+
git checkout origin/master -- CMakeLists.txt docs/ Doxyfile src/
24+
- name: Create CMake project
25+
run: |
26+
mkdir build
27+
cd build
28+
cmake ..
29+
- name: Build Decision
30+
run: |
31+
cd build
32+
make
33+
- name: Generate core reference
34+
run: |
35+
build/decision --export-core > docs/user/core.json
2436
- name: Run Doxygen
2537
run: |
2638
doxygen Doxyfile
2739
- name: Build the developer manual
2840
run: |
29-
pushd docs/developer
41+
cd docs/developer
3042
make html
31-
popd
3243
- name: Build the user manual
3344
run: |
34-
pushd docs/user
45+
cd docs/user
3546
make html
36-
popd
3747
- name: Move the built documentation
3848
run: |
3949
mkdir -p developer user
4050
cp -R docs/developer/build/html/* developer/
4151
cp -R docs/user/build/html/* user/
4252
- name: Cleanup
4353
run: |
44-
rm -R docs/ Doxyfile src/
54+
rm -R CMakeLists.txt docs/ Doxyfile src/
4555
- name: Commit if there are changes
4656
run: |
4757
git config user.email "[email protected]"

0 commit comments

Comments
 (0)