Action to build docs
This commit is contained in:
parent
c8e3a50ead
commit
a4c4700800
@ -28,3 +28,25 @@ jobs:
|
|||||||
- name: Run tests
|
- name: Run tests
|
||||||
working-directory: ${{runner.workspace}}/build
|
working-directory: ${{runner.workspace}}/build
|
||||||
run: ctest . --output-on-failure
|
run: ctest . --output-on-failure
|
||||||
|
Docs:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Prepare environment
|
||||||
|
run: |
|
||||||
|
apt update
|
||||||
|
apt install -y --no-install-recommends build-essential cmake ninja-build doxygen python3-sphinx
|
||||||
|
pip3 install breathe
|
||||||
|
|
||||||
|
- name: Configure build
|
||||||
|
working-directory: ${{runner.workspace}}
|
||||||
|
run: |
|
||||||
|
cmake . -B${{runner.workspace}}/build \
|
||||||
|
-G"Ninja" \
|
||||||
|
-DCMAKE_BUILD_TYPE=Release \
|
||||||
|
-DSKULLC_WITH_DOCS=ON
|
||||||
|
|
||||||
|
- name: Build docs
|
||||||
|
working-directory: ${{runner.workspace}}/build
|
||||||
|
run: ninja Sphinx
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user