forked from 4C-multiphysics/4C
-
Notifications
You must be signed in to change notification settings - Fork 0
67 lines (63 loc) · 1.92 KB
/
documentation.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: documentation
on:
pull_request:
branches:
- 'main'
push:
branches:
- 'main'
schedule:
- cron: '0 22 * * *'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
doxygen:
runs-on: ubuntu-latest
container:
image: ghcr.io/4c-multiphysics/4c-dependencies-ubuntu24.04:28cfb9d0
options: --user root --env OMPI_ALLOW_RUN_AS_ROOT=1 --env OMPI_ALLOW_RUN_AS_ROOT_CONFIRM=1
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v4
- name: Check docker hash
uses: ./.github/actions/compute-and-check-dependencies-hash
- uses: ./.github/actions/build_4C
with:
cmake-preset: docker
build-targets: doxygen
build-directory: ${{ github.workspace }}/build
use-ccache: "false"
additional-cmake-flags: -DFOUR_C_BUILD_DOXYGEN="ON"
- name: Upload doxygen
uses: actions/upload-artifact@v4
with:
name: doxygen
path: ${{ github.workspace }}/build/doc/doxygen/html/
retention-days: 2
readthedocs:
runs-on: ubuntu-latest
container:
image: ghcr.io/4c-multiphysics/4c-dependencies-ubuntu24.04:28cfb9d0
options: --user root --env OMPI_ALLOW_RUN_AS_ROOT=1 --env OMPI_ALLOW_RUN_AS_ROOT_CONFIRM=1
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v4
- name: Check docker hash
uses: ./.github/actions/compute-and-check-dependencies-hash
- uses: ./.github/actions/build_4C
with:
cmake-preset: docker
build-targets: readthedocs
build-directory: ${{ github.workspace }}/build
use-ccache: "true"
- name: Upload readthedocs
uses: actions/upload-artifact@v4
with:
name: readthedocs
path: ${{ github.workspace }}/build/doc/readthedocs/html/
retention-days: 2