-
Notifications
You must be signed in to change notification settings - Fork 1
67 lines (56 loc) · 1.48 KB
/
ci_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:
push:
branches:
- 'main'
pull_request:
types:
- unlabeled
workflow_dispatch:
concurrency:
group: documentation-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
env:
CMAKE_VERSION: 3.16.9
DOXYGEN_VERSION: 1.9.6
TZ: Europe/Berlin
defaults:
run:
shell: bash -Eexuo pipefail {0}
jobs:
build:
name: ${{ matrix.name }}
runs-on: ubuntu-22.04
timeout-minutes: 120
if: github.repository_owner == 'seqan' || github.event_name == 'workflow_dispatch' || github.event.label.name == 'clang-format'
strategy:
fail-fast: true
matrix:
include:
- name: "doxygen"
build: documentation
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 1
submodules: recursive
- name: Configure APT
run: bash .github/workflows/scripts/configure_apt.sh
- name: Install CMake
run: bash .github/workflows/scripts/install_cmake.sh
- name: Install Doxygen
run: bash .github/workflows/scripts/install_doxygen.sh
- name: Configure tests
env:
CXX: ${{ matrix.cxx }}
CC: ${{ matrix.cc }}
run: |
mkdir build
cd build
cmake ../test/${{ matrix.build }}
make -j2 download-cppreference-doxygen-web-tag
- name: Run tests
run: |
cd build
ctest . -j2 --output-on-failure