Skip to content

Commit 29a7cd3

Browse files
committed
ci: add tests for both bazel 7.0.0 and 8.0.0
1 parent a9c467b commit 29a7cd3

File tree

2 files changed

+47
-3
lines changed

2 files changed

+47
-3
lines changed

.github/workflows/ci.yml

Lines changed: 43 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,26 @@ jobs:
1414
strategy:
1515
matrix:
1616
os: [ubuntu-latest, windows-latest, macos-latest]
17-
subdir: [base, kwargs, doxyfile, latex, nested, custom, awesome, substitutions]
17+
bazel: [7.0.0, 8.0.0]
18+
subdir:
19+
[
20+
base,
21+
kwargs,
22+
doxyfile,
23+
latex,
24+
nested,
25+
custom,
26+
awesome,
27+
substitutions,
28+
]
1829
runs-on: ${{ matrix.os }}
1930

2031
steps:
2132
- uses: actions/checkout@v4
33+
- name: Create .bazelversion file
34+
working-directory: examples
35+
run: echo "${{ matrix.bazel }}" > .bazelversion
36+
shell: bash
2237
- name: Build ${{ matrix.subdir }}
2338
run: bazel build //${{ matrix.subdir }}:doxygen
2439
working-directory: examples
@@ -35,7 +50,17 @@ jobs:
3550
strategy:
3651
matrix:
3752
os: [ubuntu-latest, windows-latest, macos-latest]
38-
subdir: [base, kwargs, doxyfile, latex, nested, custom, awesome, substitutions]
53+
subdir:
54+
[
55+
base,
56+
kwargs,
57+
doxyfile,
58+
latex,
59+
nested,
60+
custom,
61+
awesome,
62+
substitutions,
63+
]
3964
runs-on: ${{ matrix.os }}
4065

4166
steps:
@@ -66,10 +91,15 @@ jobs:
6691
strategy:
6792
matrix:
6893
os: [ubuntu-latest, windows-latest, macos-latest]
94+
bazel: [7.0.0, 8.0.0]
6995
subdir: [base]
7096
runs-on: ${{ matrix.os }}
7197
steps:
7298
- uses: actions/checkout@v4
99+
- name: Create .bazelversion file
100+
working-directory: examples
101+
run: echo "${{ matrix.bazel }}" > .bazelversion
102+
shell: bash
73103
- name: Install doxygen
74104
uses: ssciwr/doxygen-install@v1
75105
- name: Enable use of windows doxygen by decommenting the module extension line
@@ -115,10 +145,15 @@ jobs:
115145
strategy:
116146
matrix:
117147
os: [ubuntu-latest, windows-latest, macos-latest]
148+
bazel: [7.0.0, 8.0.0]
118149
subdir: [base]
119150
runs-on: ${{ matrix.os }}
120151
steps:
121152
- uses: actions/checkout@v4
153+
- name: Create .bazelversion file
154+
working-directory: examples
155+
run: echo "${{ matrix.bazel }}" > .bazelversion
156+
shell: bash
122157
- name: Install doxygen
123158
uses: ssciwr/doxygen-install@v1
124159
with:
@@ -177,11 +212,16 @@ jobs:
177212
strategy:
178213
matrix:
179214
os: [ubuntu-latest, windows-latest, macos-latest]
215+
bazel: [7.0.0, 8.0.0]
180216
subdir: [root, submodule1, submodule2]
181217
runs-on: ${{ matrix.os }}
182218

183219
steps:
184220
- uses: actions/checkout@v4
221+
- name: Create .bazelversion file
222+
working-directory: examples
223+
run: echo "${{ matrix.bazel }}" > .bazelversion
224+
shell: bash
185225
- name: Build submodules/${{ matrix.subdir }}
186226
run: bazel build //:doxygen
187227
working-directory: examples/submodules/${{ matrix.subdir }}
@@ -192,4 +232,4 @@ jobs:
192232
fail: true
193233
- name: Check doxygen version in produced index.html
194234
run: grep "Doxygen $DEFAULT_DOXYGEN_VERSION" examples/submodules/${{ matrix.subdir }}/bazel-bin/html/index.html
195-
shell: bash
235+
shell: bash

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [2.2.2]
99

10+
### Added
11+
12+
- CI tests for both Bazel 7 and 8
13+
1014
### Fix
1115

1216
- Remove dependency on `@bazel_tools//tools/build_defs/repo` to support Bazel 7.0.0 [#22](https://github.com/TendTo/rules_doxygen/issues/22)

0 commit comments

Comments
 (0)