-
Notifications
You must be signed in to change notification settings - Fork 2
41 lines (39 loc) · 1.17 KB
/
build-docs.yaml
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
name: build-doc
on:
push:
pull_request:
schedule:
- cron: "0 0 * * *"
jobs:
build-docs:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
STACK: ['/cvmfs/sw-nightlies.hsf.org/key4hep/setup.sh']
OS: ['alma9',
'ubuntu22']
steps:
- uses: actions/checkout@v4
- uses: cvmfs-contrib/github-action-cvmfs@v4
- name: Start container
run: |
docker run -it --name CI_container \
-v ${GITHUB_WORKSPACE}:/Package \
-v /cvmfs:/cvmfs:shared \
-p 80:80 \
-d ghcr.io/key4hep/key4hep-images/${{ matrix.OS }}:latest \
/bin/bash
- name: CMake Configure
run: |
docker exec CI_container /bin/bash -c 'cd Package; \
mkdir -p build install; \
source ${{ matrix.STACK }}; \
cd build; \
cmake -DCMAKE_INSTALL_PREFIX=../install ..'
- name: Generate doxygen documentation
run: |
docker exec CI_container /bin/bash -c 'cd Package; \
source ${{ matrix.STACK }}; \
cd build; \
cmake --build . --target doc'