-
Notifications
You must be signed in to change notification settings - Fork 3
53 lines (48 loc) · 1.61 KB
/
ci.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
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
tests:
strategy:
matrix:
os: [ubuntu-latest, windows-latest] # No macOS for now
subdir: [base, kwargs, doxyfile, latex, nested, custom, awesome]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Build ${{ matrix.subdir }}
run: bazel build //${{ matrix.subdir }}:doxygen
working-directory: examples
- name: Check output
uses: andstor/file-existence-action@v3
with:
files: "examples/bazel-bin/${{ matrix.subdir }}/html/index.html"
fail: true
tests-system-installation:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
subdir: [base, kwargs, doxyfile, latex, nested, custom, awesome]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Install doxygen
uses: ssciwr/doxygen-install@v1
- name: Enable use of system doxygen by decommenting the module extension line
uses: jacobtomlinson/gha-find-replace@v3
with:
find: '# doxygen_extension.version(version = "0.0.0")'
replace: doxygen_extension.version(version = "0.0.0")
regex: false
include: examples/MODULE.bazel
- name: Build ${{ matrix.subdir }}
run: bazel build //${{ matrix.subdir }}:doxygen
working-directory: examples
- name: Check output
uses: andstor/file-existence-action@v3
with:
files: "examples/bazel-bin/${{ matrix.subdir }}/html/index.html"
fail: true