From 1af170ad383dd360d2dd6dfdca201c4bd3efb103 Mon Sep 17 00:00:00 2001 From: Krystine Sherwin <93062060+KrystalDelusion@users.noreply.github.com> Date: Tue, 14 May 2024 09:42:24 +1200 Subject: [PATCH] test-build.yml: Add test-docs-build Try use self hosted linux runner with build artifact to build html and latexpdf to check for errors. --- .github/workflows/test-build.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/.github/workflows/test-build.yml b/.github/workflows/test-build.yml index bf95688a15c..3be9d8ef8d9 100644 --- a/.github/workflows/test-build.yml +++ b/.github/workflows/test-build.yml @@ -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 }}