Skip to content

Commit

Permalink
test-build.yml: Add test-docs-build
Browse files Browse the repository at this point in the history
Try use self hosted linux runner with build artifact to build html and latexpdf to check for errors.
  • Loading branch information
KrystalDelusion committed May 13, 2024
1 parent ee53fa3 commit 1af170a
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/test-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -179,3 +179,35 @@ jobs:
shell: bash
run: |
make -C docs test -j${{ env.procs }}
test-docs-build:
name: Try build docs
runs-on: [self-hosted, linux, x64]
needs: [test-docs, pre_docs_job]
if: needs.pre_docs_job.outputs.should_skip != 'true'
strategy:
matrix:
docs-target: [html, latexpdf]
fail-fast: false
steps:
- name: Checkout Yosys
uses: actions/checkout@v4

- name: Runtime environment
run: |
echo "procs=$(nproc)" >> $GITHUB_ENV
- name: Download build artifact
uses: actions/download-artifact@v4
with:
name: build-ubuntu-latest

- name: Uncompress build
shell: bash
run:
tar -xvf build.tar

- name: Build docs
shell: bash
run: |
make docs DOC_TARGET=${{ matrix.docs-target }}

0 comments on commit 1af170a

Please sign in to comment.