Skip to content

Commit 5d14c30

Browse files
test-build.yml: Add test-docs-build
Try use self hosted linux runner to build html and latexpdf to check for errors. Trying to use the build artifact didn't seem to work, so just run it on its own. Upload docs/build folder as artifact to enable review without having to build locally. Note: doesn't include verific, so will differ slightly from final published docs.
1 parent 4ea6119 commit 5d14c30

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/test-build.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,3 +189,40 @@ jobs:
189189
shell: bash
190190
run: |
191191
make -C docs test -j${{ env.procs }}
192+
193+
test-docs-build:
194+
name: Try build docs
195+
runs-on: [self-hosted, linux, x64]
196+
needs: [pre_docs_job]
197+
if: needs.pre_docs_job.outputs.should_skip != 'true'
198+
strategy:
199+
matrix:
200+
docs-target: [html, latexpdf]
201+
fail-fast: false
202+
steps:
203+
- name: Checkout Yosys
204+
uses: actions/checkout@v4
205+
with:
206+
submodules: true
207+
208+
- name: Runtime environment
209+
run: |
210+
echo "procs=$(nproc)" >> $GITHUB_ENV
211+
212+
- name: Build Yosys
213+
run: |
214+
make config-clang
215+
echo "ENABLE_CCACHE := 1" >> Makefile.conf
216+
make -j${{ env.procs }}
217+
218+
- name: Build docs
219+
shell: bash
220+
run: |
221+
make docs DOC_TARGET=${{ matrix.docs-target }} -j${{ env.procs }}
222+
223+
- name: Store docs build artifact
224+
uses: actions/upload-artifact@v4
225+
with:
226+
name: docs-build-${{ matrix.docs-target }}
227+
path: docs/build/
228+
retention-days: 7

0 commit comments

Comments
 (0)