File tree Expand file tree Collapse file tree 2 files changed +25
-9
lines changed Expand file tree Collapse file tree 2 files changed +25
-9
lines changed Original file line number Diff line number Diff line change 8
8
build :
9
9
name : ${{ matrix.config.name }}
10
10
runs-on : ${{ matrix.config.os }}
11
- env :
12
- HDOC_PROJECT_API_KEY : ${{ secrets.HDOC_PROJECT_API_KEY }}
13
11
strategy :
14
12
fail-fast : false
15
13
matrix :
@@ -166,13 +164,6 @@ jobs:
166
164
message(FATAL_ERROR "Running tests failed!")
167
165
endif()
168
166
169
- - name : Documentation
170
- if : ${{ startsWith(matrix.config.cxx, 'g++') && env.HDOC_PROJECT_API_KEY != '' }}
171
- uses : hdoc/hdoc-github-action@v2
172
- with :
173
- compile-commands-path : out/compile_commands.json
174
- hdoc-api-key : ${{ env.HDOC_PROJECT_API_KEY }}
175
-
176
167
- name : Install Strip
177
168
run : cmake --install out --prefix instdir --strip
178
169
Original file line number Diff line number Diff line change
1
+ name : docs
2
+
3
+ on :
4
+ push :
5
+ branches : [main]
6
+
7
+ jobs :
8
+ docs :
9
+ name : Generate documentation
10
+ if : github.repository == 'chromium/subspace'
11
+ runs-on : ubuntu-latest
12
+
13
+ steps :
14
+ - uses : actions/checkout@v1
15
+
16
+ - name : Configure
17
+ run : |
18
+ sudo apt install build-essential cmake ninja-build
19
+ cmake -G Ninja -B out -D CMAKE_EXPORT_COMPILE_COMMANDS=1
20
+
21
+ - name : Documentation
22
+ uses : hdoc/hdoc-github-action@v2
23
+ with :
24
+ compile-commands-path : out/compile_commands.json
25
+ hdoc-api-key : ${{ secrets.HDOC_PROJECT_API_KEY }}
You can’t perform that action at this time.
0 commit comments