Skip to content

Commit f1fa4b6

Browse files
author
Christos Konstantinos Matzoros
committed
Move docs build
1 parent efe7140 commit f1fa4b6

1 file changed

Lines changed: 13 additions & 32 deletions

File tree

.github/workflows/main.yml

Lines changed: 13 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
run: cmake --build . -j$(nproc)
4040

4141
# -------------------------------------------------
42-
# 2. FULL BUILD + TEST + SIMPLE DAG RUN (RelWithDebInfo + Eigen)
42+
# 2. FULL BUILD + TEST + SIMPLE DAG RUN + DOCS (RelWithDebInfo + Eigen)
4343
# -------------------------------------------------
4444
test_and_run:
4545
name: Build & Test (RelWithDebInfo + Eigen)
@@ -87,6 +87,18 @@ jobs:
8787
--Etf --GreedyChildren --MultiHC --SarkarLockingHC \
8888
--GreedyChildrenKL --GrowLocalKL --GreedyBspHC --FunnelLocking
8989
90+
- name: Build documentation
91+
run: |
92+
cmake --build build --target doc
93+
mkdir -p public
94+
cp -r doc/html/* public
95+
96+
- name: Upload docs artifact
97+
uses: actions/upload-artifact@v4
98+
with:
99+
name: docs
100+
path: public
101+
90102
# -------------------------------------------------
91103
# 3. FULL BUILD + TEST (RelWithDebInfo-noEigen)
92104
# -------------------------------------------------
@@ -135,34 +147,3 @@ jobs:
135147
--Serial --GreedyBsp --BspLocking --GrowLocal --Variance --Cilk \
136148
--Etf --GreedyChildren --MultiHC --SarkarLockingHC \
137149
--GreedyChildrenKL --GrowLocalKL --GreedyBspHC --FunnelLocking
138-
139-
# -------------------------------------------------
140-
# 4. BUILD DOCUMENTATION (only on master)
141-
# -------------------------------------------------
142-
docs:
143-
name: Build Docs
144-
runs-on: ubuntu-latest
145-
needs: [test_and_run, test_no_eigen]
146-
if: github.ref == 'refs/heads/master'
147-
148-
steps:
149-
- uses: actions/checkout@v3
150-
151-
- name: Install dependencies
152-
run: |
153-
sudo apt-get update
154-
sudo apt-get install -y --no-install-recommends \
155-
doxygen graphviz libeigen3-dev cmake g++
156-
157-
- name: Build docs
158-
run: |
159-
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
160-
cmake --build build --target doc
161-
mkdir -p public
162-
cp -r doc/html/* public
163-
164-
- name: Upload docs artifact
165-
uses: actions/upload-artifact@v4
166-
with:
167-
name: docs
168-
path: public

0 commit comments

Comments
 (0)