-
Notifications
You must be signed in to change notification settings - Fork 12
42 lines (34 loc) · 1008 Bytes
/
build_docs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Build docs
on:
workflow_dispatch:
workflow_call:
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-22.04
container: ghcr.io/fenics/dolfinx/dev-env:v0.7.0-mpich
env:
# Directory that will be published on github pages
PUBLISH_DIR: ./_build/html
PETSC_ARCH: "linux-gnu-real64-32"
steps:
- uses: actions/checkout@v4
- name: Install DOLFINx
uses: ./.github/actions/install-dolfinx
- name: Install DOLFINx-MPC (C++)
run: |
cmake -G Ninja -B build-dir -DCMAKE_BUILD_TYPE=Release -S cpp/
cmake --build build-dir --parallel 3
cmake --install build-dir
- name: Install DOLFINx-MPC (Python)
run: python3 -m pip -v install python/[docs]
- name: Build docs
run: jupyter book build .
- name: Upload documentation as artifact
uses: actions/upload-artifact@v3
with:
name: documentation
path: ${{ env.PUBLISH_DIR }}
if-no-files-found: error