Skip to content

Commit d9b8b0f

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 ee53fa3 commit d9b8b0f

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/test-build.yml

+37
Original file line numberDiff line numberDiff line change
@@ -179,3 +179,40 @@ jobs:
179179
shell: bash
180180
run: |
181181
make -C docs test -j${{ env.procs }}
182+
183+
test-docs-build:
184+
name: Try build docs
185+
runs-on: [self-hosted, linux, x64]
186+
needs: [pre_docs_job]
187+
if: needs.pre_docs_job.outputs.should_skip != 'true'
188+
strategy:
189+
matrix:
190+
docs-target: [html, latexpdf]
191+
fail-fast: false
192+
steps:
193+
- name: Checkout Yosys
194+
uses: actions/checkout@v4
195+
with:
196+
submodules: true
197+
198+
- name: Runtime environment
199+
run: |
200+
echo "procs=$(nproc)" >> $GITHUB_ENV
201+
202+
- name: Build Yosys
203+
run: |
204+
make config-clang
205+
echo "ENABLE_CCACHE := 1" >> Makefile.conf
206+
make -j${{ env.procs }}
207+
208+
- name: Build docs
209+
shell: bash
210+
run: |
211+
make docs DOC_TARGET=${{ matrix.docs-target }}
212+
213+
- name: Store docs build artifact
214+
uses: actions/upload-artifact@v4
215+
with:
216+
name: docs-build-${{ matrix.docs-target }}
217+
path: docs/build/
218+
retention-days: 7

0 commit comments

Comments
 (0)